From: <mrp...@us...> - 2010-12-21 15:13:50
|
Revision: 4029 http://bigdata.svn.sourceforge.net/bigdata/?rev=4029&view=rev Author: mrpersonick Date: 2010-12-21 15:13:44 +0000 (Tue, 21 Dec 2010) Log Message: ----------- javadoc Modified Paths: -------------- branches/JOURNAL_HA_BRANCH/bigdata-rdf/src/java/com/bigdata/rdf/store/BD.java Modified: branches/JOURNAL_HA_BRANCH/bigdata-rdf/src/java/com/bigdata/rdf/store/BD.java =================================================================== --- branches/JOURNAL_HA_BRANCH/bigdata-rdf/src/java/com/bigdata/rdf/store/BD.java 2010-12-21 15:09:07 UTC (rev 4028) +++ branches/JOURNAL_HA_BRANCH/bigdata-rdf/src/java/com/bigdata/rdf/store/BD.java 2010-12-21 15:13:44 UTC (rev 4029) @@ -65,6 +65,14 @@ */ final String NAMESPACE = "http://www.bigdata.com/rdf#"; + /** + * The namespace used for magic search predicates. + * <p> + * @see #SEARCH + * @see #RELEVANCE + * @see #RANK + * @see #NUM_MATCHED_TOKENS + */ final String SEARCH_NAMESPACE = "http://www.bigdata.com/rdf/search#"; /** @@ -154,10 +162,52 @@ */ final URI SEARCH = new URIImpl(SEARCH_NAMESPACE+"search"); + /** + * Magic predicate used to query for free text search metadata. Use + * in conjunction with {@link #SEARCH} as follows: + * <p> + * <pre> + * + * select ?s ?relevance + * where { + * ?s bd:search "scale-out RDF triplestore" . + * ?s bd:relevance ?relevance . + * } + * + * </pre> + */ final URI RELEVANCE = new URIImpl(SEARCH_NAMESPACE+"relevance"); + /** + * Magic predicate used to query for free text search metadata. Use + * in conjunction with {@link #SEARCH} as follows: + * <p> + * <pre> + * + * select ?s ?rank + * where { + * ?s bd:search "scale-out RDF triplestore" . + * ?s bd:rank ?rank . + * } + * + * </pre> + */ final URI RANK = new URIImpl(SEARCH_NAMESPACE+"rank"); + /** + * Magic predicate used to query for free text search metadata. Use + * in conjunction with {@link #SEARCH} as follows: + * <p> + * <pre> + * + * select ?s ?matched + * where { + * ?s bd:search "scale-out RDF triplestore" . + * ?s bd:numMatchedTokens ?matched . + * } + * + * </pre> + */ final URI NUM_MATCHED_TOKENS = new URIImpl(SEARCH_NAMESPACE+"numMatchedTokens"); /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <tho...@us...> - 2010-12-21 15:22:53
|
Revision: 4031 http://bigdata.svn.sourceforge.net/bigdata/?rev=4031&view=rev Author: thompsonbry Date: 2010-12-21 15:22:47 +0000 (Tue, 21 Dec 2010) Log Message: ----------- Removed an unused field declared by BD.java (ATOMIC_UPDATE_SEPARATOR_KEY). Modified Paths: -------------- branches/JOURNAL_HA_BRANCH/bigdata-rdf/src/java/com/bigdata/rdf/store/BD.java Modified: branches/JOURNAL_HA_BRANCH/bigdata-rdf/src/java/com/bigdata/rdf/store/BD.java =================================================================== --- branches/JOURNAL_HA_BRANCH/bigdata-rdf/src/java/com/bigdata/rdf/store/BD.java 2010-12-21 15:17:52 UTC (rev 4030) +++ branches/JOURNAL_HA_BRANCH/bigdata-rdf/src/java/com/bigdata/rdf/store/BD.java 2010-12-21 15:22:47 UTC (rev 4031) @@ -225,14 +225,14 @@ */ URI NULL_GRAPH = new URIImpl(NAMESPACE + "nullGraph"); - /** - * We need the abiltiy to do atomic add+drop in one operation via the - * remoting interface. Thus we need the ability to place - * statements to add and to delete in the same serialized document sent - * across the wire. This separator key, when included in a comment, will - * mark the separation point between statements to drop (above the - * separator) and statements to add (below the separator). - */ - URI ATOMIC_UPDATE_SEPARATOR_KEY = new URIImpl(NAMESPACE + "atomicUpdateSeparatorKey"); +// /** +// * We need the ability to do atomic add+drop in one operation via the +// * remoting interface. Thus we need the ability to place +// * statements to add and to delete in the same serialized document sent +// * across the wire. This separator key, when included in a comment, will +// * mark the separation point between statements to drop (above the +// * separator) and statements to add (below the separator). +// */ +// URI ATOMIC_UPDATE_SEPARATOR_KEY = new URIImpl(NAMESPACE + "atomicUpdateSeparatorKey"); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mrp...@us...> - 2010-12-21 16:25:35
|
Revision: 4033 http://bigdata.svn.sourceforge.net/bigdata/?rev=4033&view=rev Author: mrpersonick Date: 2010-12-21 16:25:29 +0000 (Tue, 21 Dec 2010) Log Message: ----------- magic predicates for maxHits and minRelevance for free test search query Modified Paths: -------------- branches/JOURNAL_HA_BRANCH/bigdata-rdf/src/java/com/bigdata/rdf/store/BD.java Modified: branches/JOURNAL_HA_BRANCH/bigdata-rdf/src/java/com/bigdata/rdf/store/BD.java =================================================================== --- branches/JOURNAL_HA_BRANCH/bigdata-rdf/src/java/com/bigdata/rdf/store/BD.java 2010-12-21 16:02:41 UTC (rev 4032) +++ branches/JOURNAL_HA_BRANCH/bigdata-rdf/src/java/com/bigdata/rdf/store/BD.java 2010-12-21 16:25:29 UTC (rev 4033) @@ -187,12 +187,12 @@ * select ?s ?rank * where { * ?s bd:search "scale-out RDF triplestore" . - * ?s bd:rank ?rank . + * ?s bd:maxHits "5"^^xsd:int . * } * * </pre> */ - final URI RANK = new URIImpl(SEARCH_NAMESPACE+"rank"); + final URI MAX_HITS = new URIImpl(SEARCH_NAMESPACE+"maxHits"); /** * Magic predicate used to query for free text search metadata. Use @@ -203,13 +203,13 @@ * select ?s ?matched * where { * ?s bd:search "scale-out RDF triplestore" . - * ?s bd:numMatchedTokens ?matched . + * ?s bd:minRelevance "0.5"^^xsd:double . * } * * </pre> */ - final URI NUM_MATCHED_TOKENS = new URIImpl(SEARCH_NAMESPACE+"numMatchedTokens"); - + final URI MIN_RELEVANCE = new URIImpl(SEARCH_NAMESPACE+"minRelevance"); + /** * Sesame has the notion of a "null" graph. Any time you insert a statement * into a quad store and the context position is not specified, it is This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |