Differences between revisions 3 and 9 (spanning 6 versions)
Revision 3 as of 2008-10-16 12:36:36
Size: 2378
Editor: jrg
Comment:
Revision 9 as of 2008-10-17 08:29:58
Size: 2499
Editor: jrg
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
You have the resource index service, described in The Fedora Resource Index service is described in http://www.fedora-commons.org/confluence/display/FCR30/Resource+Index
Line 5: Line 5:
http://www.fedora-commons.org/confluence/display/FCR30/Resource+Index The resource index is queried by iTQL. A guide to iTQL can be found on http://docs.mulgara.org/itqlcommands/select.html
Line 7: Line 7:
The resource index is queried by iTQL. A guide to itql can be found on
http://docs.mulgara.org/itqlcommands/select.html
This has a graphical user interface, which it very helpful to users, but not programmatically useful. The interface is described here:
Line 10: Line 9:
This has a graphical user interface, which it very helpful to users, but not programmatically useful.
Line 13: Line 11:
For programs, there are two interfaces, both not very optimal. For programs, there are two interfaces.
Line 15: Line 13:
The first is the rest based interface, defined in
http://www.fedora-commons.org/confluence/display/FCR30/Resource+Index+Search#ResourceIndexSearch-ApplicationInterface
 * The first is the REST-based interface defined in
Line 18: Line 15:
The second in the fedora client, which has a getTuples method.
http://www.fedora-commons.org/documentation/3.0/javadocs/index.html?fedora/client/FedoraClient.html. It has the javadoc
 http://www.fedora-commons.org/confluence/display/FCR30/Resource+Index+Search#ResourceIndexSearch-ApplicationInterface
Line 21: Line 17:
{{{  * The second is the Fedora client, which has a method {{{getTuples()}}}. See

 http://www.fedora-commons.org/documentation/3.0/javadocs/index.html?fedora/client/FedoraClient.html.

 The method {{{getTuples()}}} has the following javadoc

 {{{
Line 29: Line 31:
}}} which is nicely outdated.
This method, returns an org.trippi.TupleIterator which parses the sparql result. The javadoc for this can be found on
http://trippi.sourceforge.net/api/org/trippi/TupleIterator.html Note that the page is not updated either, the releases can be found in the svn, and has reached version 1.4. Fedora use 1.3.2, which is unknown, but 1.3.1 can be checked out. Look at http://sourceforge.net/svn/?group_id=123675 to od this.
 }}} which is unfortunately outdated.
Line 33: Line 33:
The result consist of a list of maps. The iterator iterates through this list, returning maps. The iterator has a method, names, giving the keys to each map. The values in the maps are of type Node,
http://jrdf.sourceforge.net/0.3.4/doc/javadoc/org/jrdf/graph/Node.html
 The method returns an {{{org.trippi.TupleIterator}}} which parses the sparql result. The javadoc for this can be found on
 http://trippi.sourceforge.net/api/org/trippi/TupleIterator.html
Line 36: Line 36:
In practice each node will always be a Literal node or a URI reference Node or a Blank node,  Note that the page is not updated either, the releases can be found in the svn, and has reached version 1.4. Fedora uses 1.3.2, which is unknown, but 1.3.1 can be checked out. Look at http://sourceforge.net/svn/?group_id=123675 to do this.
Line 38: Line 38:
http://jrdf.sourceforge.net/0.3.4/doc/javadoc/org/jrdf/graph/URIReference.html,  The result consist of a list of maps. The iterator iterates through this list, returning maps. The iterator has a method, names, giving the keys to each map. The values in the maps are of type Node, see
 http://jrdf.sourceforge.net/0.3.4/doc/javadoc/org/jrdf/graph/Node.html
 
 In practice each node will always be a Literal node or a URI reference Node or a Blank node, see the following
 
 http://jrdf.sourceforge.net/0.3.4/doc/javadoc/org/jrdf/graph/Literal.html,
Line 40: Line 45:
http://jrdf.sourceforge.net/0.3.4/doc/javadoc/org/jrdf/graph/Literal.html ,  http://jrdf.sourceforge.net/0.3.4/doc/javadoc/org/jrdf/graph/URIReference.html,
Line 42: Line 47:
http://jrdf.sourceforge.net/0.3.4/doc/javadoc/org/jrdf/graph/BlankNode.html  http://jrdf.sourceforge.net/0.3.4/doc/javadoc/org/jrdf/graph/BlankNode.html

Fedora Resource Index

The Fedora Resource Index service is described in http://www.fedora-commons.org/confluence/display/FCR30/Resource+Index

The resource index is queried by iTQL. A guide to iTQL can be found on http://docs.mulgara.org/itqlcommands/select.html

This has a graphical user interface, which it very helpful to users, but not programmatically useful. The interface is described here:

http://www.fedora-commons.org/confluence/display/FCR30/Resource+Index+Search

For programs, there are two interfaces.

Fedora 3.0 triple store API (last edited 2010-03-17 13:12:54 by localhost)