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. |