From: <tho...@us...> - 2014-01-07 18:28:32
|
Revision: 7743 http://bigdata.svn.sourceforge.net/bigdata/?rev=7743&view=rev Author: thompsonbry Date: 2014-01-07 18:28:20 +0000 (Tue, 07 Jan 2014) Log Message: ----------- Beginnings of test suite for the RTO. This test suite does not yet run in CI. See #64 (RTO). Added Paths: ----------- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/AbstractRTOTestCase.java branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BAR-Q1.rq branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BAR-Q1.srx branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q1.rq branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q1.srx branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q10.rq branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q10.srx branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q2.rq branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q2.srx branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q3.rq branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q3.srx branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q4.rq branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q4.srx branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q5.rq branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q5.srx branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q7.rq branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q7.srx branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q8.rq branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q8.srx branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/LUBM-Q2.rq branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/LUBM-Q2.srx branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/LUBM-Q8.rq branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/LUBM-Q8.srx branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/LUBM-Q9.rq branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/LUBM-Q9.srx branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/LUBM-U1.rdf branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/LUBM-U1.rdf.gz branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/TestAll.java branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/TestRTO_BAR.java branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/TestRTO_BSBM.java branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/TestRTO_LUBM.java Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/AbstractRTOTestCase.java =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/AbstractRTOTestCase.java (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/AbstractRTOTestCase.java 2014-01-07 18:28:20 UTC (rev 7743) @@ -0,0 +1,211 @@ +/** + +Copyright (C) SYSTAP, LLC 2006-2011. All rights reserved. + +Contact: + SYSTAP, LLC + 4501 Tower Road + Greensboro, NC 27410 + lic...@bi... + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; version 2 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +*/ +/* + * Created on Sep 4, 2011 + */ + +package com.bigdata.rdf.sparql.ast.eval.rto; + +import java.util.Arrays; +import java.util.UUID; + +import org.apache.log4j.Logger; + +import com.bigdata.bop.BOpUtility; +import com.bigdata.bop.PipelineOp; +import com.bigdata.bop.engine.IRunningQuery; +import com.bigdata.bop.engine.QueryEngine; +import com.bigdata.bop.engine.QueryEngine.IRunningQueryListener; +import com.bigdata.bop.fed.QueryEngineFactory; +import com.bigdata.bop.joinGraph.rto.JGraph; +import com.bigdata.bop.joinGraph.rto.JoinGraph; +import com.bigdata.bop.joinGraph.rto.Path; +import com.bigdata.bop.rdf.joinGraph.TestJoinGraphOnLubm; +import com.bigdata.journal.IBTreeManager; +import com.bigdata.rdf.sparql.ast.ASTContainer; +import com.bigdata.rdf.sparql.ast.QueryHints; +import com.bigdata.rdf.sparql.ast.eval.AbstractDataDrivenSPARQLTestCase; +import com.bigdata.rdf.sparql.ast.optimizers.IASTOptimizer; + +/** + * Data driven test suite for the Runtime Query Optimizer (RTO). + * <p> + * Note: We reduce the stochastic behavior of the algorithm by using non-random + * sampling techniques. However, the main correctness issues for the RTO are the + * handling of different kinds of join groups, not the specific join orderings + * that it produces. The join orderings depend on how the cutoff joins are + * sampled. + * + * @author <a href="mailto:tho...@us...">Bryan Thompson</a> + * @version $Id: TestBasicQuery.java 6440 2012-08-14 17:57:33Z thompsonbry $ + * + * @see JGraph + * @see JoinGraph + * @see <a href="https://sourceforge.net/apps/trac/bigdata/ticket/64">Runtime + * Query Optimization</a> + * @see <a href="https://sourceforge.net/apps/trac/bigdata/ticket/258">Integrate + * RTO into SAIL</a> + * + * TODO See the stubbed out test suite for the RTO for some examples of + * join groups that it should be handling. + * + * TODO The RTO also needs to handle FILTERs that require materialization. + * This should be the subject of a test suite. + * + * TODO The RTO should be extended (together with test coverage) to handle + * more interesting kinds of join groups (optionls, sub-selects, property + * paths, SERVICE calls, etc). + * <p> + * Note: When handling sub-groups, etc., the RTO needs to flow solutions + * into the sub-query. + * + * TODO When adding an {@link IASTOptimizer} for the RTO, modify this class + * to test for the inclusion of the JoinGraphNode for the RTO. + * + * TODO Automate the larger data scale tests on these data sets as part of + * CI and provide automated reporting over time on those performance runs. + * Once this is done, there will be no more reason to keep the older + * {@link TestJoinGraphOnLubm} and related tests. + */ +public class AbstractRTOTestCase extends AbstractDataDrivenSPARQLTestCase { + + private final static Logger log = Logger.getLogger(AbstractRTOTestCase.class); + + /** + * + */ + public AbstractRTOTestCase() { + } + + /** + * @param name + */ + public AbstractRTOTestCase(String name) { + super(name); + } + + /** + * Helper class supports inspection of the terminated {@link IRunningQuery}. + * + * @author <a href="mailto:tho...@us...">Bryan + * Thompson</a> + */ + protected static class MyQueryListener implements IRunningQueryListener { + + private final UUID queryId; + private volatile IRunningQuery q; + + public MyQueryListener(final UUID queryId) { + + if(queryId == null) + throw new IllegalArgumentException(); + + this.queryId = queryId; + + } + + @Override + public void notify(final IRunningQuery q) { + + if(q.getQueryId().equals(queryId)) { + + this.q = q; + + } + + } + + public IRunningQuery getRunningQuery() { + + final IRunningQuery q = this.q; + + if (q == null) + fail("Not found."); + + return q; + + } + + } + + /** + * Helper to run the test and examine the RTO determined solution. + * + * @param expected + * The expected join ordering. + * @param helper + */ + protected void assertSameJoinOrder(final int[] expected, + final TestHelper helper) throws Exception { + + /* + * Assign a UUID to this query so we can get at its outcome. + */ + final UUID queryId = UUID.randomUUID(); + + helper.getASTContainer().setQueryHint(QueryHints.QUERYID, + queryId.toString()); + + final QueryEngine queryEngine = QueryEngineFactory + .getExistingQueryController((IBTreeManager) helper + .getTripleStore().getIndexManager()); + + // Hook up our listener and run the test. + final ASTContainer astContainer; + final MyQueryListener l = new MyQueryListener(queryId); + try { + // Register the listener. + queryEngine.addListener(l); + // Run the test. + astContainer = helper.runTest(); + } finally { + // Unregister the listener. + queryEngine.removeListener(l); + } + +// final QueryRoot optimizedAST = astContainer.getOptimizedAST(); + + final PipelineOp queryPlan = astContainer.getQueryPlan(); + + final JoinGraph joinGraph = BOpUtility.getOnly(queryPlan, + JoinGraph.class); + + assertNotNull(joinGraph); + + // The join path selected by the RTO. + final Path path = joinGraph.getPath(l.getRunningQuery()); + + if (log.isInfoEnabled()) + log.info("path=" + path); + + if (!Arrays.equals(expected, path.getVertexIds())) + fail("RTO JOIN ORDER" // + + ": expected=" + Arrays.toString(expected)// + + ", actual=" + Arrays.toString(path.getVertexIds())); + + // joinGraph.getQueryPlan(q) + + } + +} Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BAR-Q1.rq =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BAR-Q1.rq (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BAR-Q1.rq 2014-01-07 18:28:20 UTC (rev 7743) @@ -0,0 +1,17 @@ +PREFIX : <http://test/bar#> +#SELECT ?employeeNum (COUNT(?type) AS ?total) +SELECT (COUNT(*) as ?count) +WHERE { + # Control all RTO parameters for repeatable behavior. + hint:Group hint:optimizer "Runtime". + hint:Group hint:RTO-sampleType "DENSE". + hint:Group hint:RTO-limit "100". + hint:Group hint:RTO-nedges "1". + ?order a <http://test/bar#Order> . + ?order <http://test/bar#orderItems> ?item . + ?item <http://test/bar#beverageType> "Beer" . + ?item <http://test/bar#beverageType> ?type . + ?order <http://test/bar#employee> ?employee . + ?employee <http://test/bar#employeeNum> ?employeeNum . +} +#GROUP BY ?employeeNum Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BAR-Q1.srx =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BAR-Q1.srx (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BAR-Q1.srx 2014-01-07 18:28:20 UTC (rev 7743) @@ -0,0 +1,14 @@ +<?xml version="1.0"?> +<sparql xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:xs="http://www.w3.org/2001/XMLSchema#" xmlns="http://www.w3.org/2005/sparql-results#"> + <head> + <variable name="count" /> + </head> + <results> + <result> + <binding name="count"> + <literal datatype="http://www.w3.org/2001/XMLSchema#integer">8039</literal> + </binding> + </result> + </results> +</sparql> Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q1.rq =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q1.rq (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q1.rq 2014-01-07 18:28:20 UTC (rev 7743) @@ -0,0 +1,26 @@ +# BSBM Q1 on pc100. + +PREFIX bsbm-inst: <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/> +PREFIX bsbm: <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/> +PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> +PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> + +SELECT (COUNT(DISTINCT *) as ?count) +#SELECT DISTINCT ?product ?label +WHERE { + + # Control all RTO parameters for repeatable behavior. + hint:Query hint:optimizer "Runtime". + hint:Query hint:RTO-sampleType "DENSE". + hint:Query hint:RTO-limit "100". + hint:Query hint:RTO-nedges "1". + + ?product rdfs:label ?label . + ?product a <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/ProductType7> . + ?product bsbm:productFeature <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/ProductFeature33> . + ?product bsbm:productFeature <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/ProductFeature22> . + ?product bsbm:productPropertyNumeric1 ?value1 . + FILTER (?value1 > 282) + } +ORDER BY ?label +LIMIT 10 Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q1.srx =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q1.srx (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q1.srx 2014-01-07 18:28:20 UTC (rev 7743) @@ -0,0 +1,14 @@ +<?xml version="1.0"?> +<sparql xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:xs="http://www.w3.org/2001/XMLSchema#" xmlns="http://www.w3.org/2005/sparql-results#"> + <head> + <variable name="count" /> + </head> + <results> + <result> + <binding name="count"> + <literal datatype="http://www.w3.org/2001/XMLSchema#integer">1</literal> + </binding> + </result> + </results> +</sparql> Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q10.rq =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q10.rq (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q10.rq 2014-01-07 18:28:20 UTC (rev 7743) @@ -0,0 +1,27 @@ +# BSBM Q10 on pc100. + +PREFIX bsbm: <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/> +PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> +PREFIX dc: <http://purl.org/dc/elements/1.1/> + +SELECT DISTINCT ?offer ?price +WHERE { + + # Control all RTO parameters for repeatable behavior. + hint:Query hint:optimizer "Runtime". + hint:Query hint:RTO-sampleType "DENSE". + hint:Query hint:RTO-limit "100". + hint:Query hint:RTO-nedges "1". + + ?offer bsbm:product <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer1/Product27> . + ?offer bsbm:vendor ?vendor . + ?offer dc:publisher ?vendor . + ?vendor bsbm:country <http://downlode.org/rdf/iso-3166/countries#US> . + ?offer bsbm:deliveryDays ?deliveryDays . + FILTER (?deliveryDays <= 3) + ?offer bsbm:price ?price . + ?offer bsbm:validTo ?date . + FILTER (?date > "2008-06-20T00:00:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) +} +ORDER BY xsd:double(str(?price)) +LIMIT 10 Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q10.srx =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q10.srx (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q10.srx 2014-01-07 18:28:20 UTC (rev 7743) @@ -0,0 +1,66 @@ +<?xml version="1.0"?> +<sparql xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:xs="http://www.w3.org/2001/XMLSchema#" xmlns="http://www.w3.org/2005/sparql-results#"> + <head> + <variable name="offer" /> + <variable name="price" /> + </head> + <results> + <result> + <binding name="offer"> + <uri>http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromVendor1/Offer1780</uri> + </binding> + <binding name="price"> + <literal datatype="http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/USD">400.97</literal> + </binding> + </result> + <result> + <binding name="offer"> + <uri>http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromVendor1/Offer1257</uri> + </binding> + <binding name="price"> + <literal datatype="http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/USD">2512.78</literal> + </binding> + </result> + <result> + <binding name="offer"> + <uri>http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromVendor1/Offer1138</uri> + </binding> + <binding name="price"> + <literal datatype="http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/USD">2570.83</literal> + </binding> + </result> + <result> + <binding name="offer"> + <uri>http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromVendor1/Offer997</uri> + </binding> + <binding name="price"> + <literal datatype="http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/USD">2590.78</literal> + </binding> + </result> + <result> + <binding name="offer"> + <uri>http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromVendor1/Offer233</uri> + </binding> + <binding name="price"> + <literal datatype="http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/USD">2701.29</literal> + </binding> + </result> + <result> + <binding name="offer"> + <uri>http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromVendor1/Offer1636</uri> + </binding> + <binding name="price"> + <literal datatype="http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/USD">9227.48</literal> + </binding> + </result> + <result> + <binding name="offer"> + <uri>http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromVendor1/Offer573</uri> + </binding> + <binding name="price"> + <literal datatype="http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/USD">9279.54</literal> + </binding> + </result> + </results> +</sparql> Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q2.rq =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q2.rq (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q2.rq 2014-01-07 18:28:20 UTC (rev 7743) @@ -0,0 +1,34 @@ +# BSBM Q2 on pc100. + +PREFIX bsbm-inst: <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/> +PREFIX bsbm: <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/> +PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> +PREFIX dc: <http://purl.org/dc/elements/1.1/> + +SELECT (COUNT(*) as ?count) +#SELECT ?label ?comment ?producer ?productFeature ?propertyTextual1 ?propertyTextual2 ?propertyTextual3 +# ?propertyNumeric1 ?propertyNumeric2 ?propertyTextual4 ?propertyTextual5 ?propertyNumeric4 +WHERE { + + # Control all RTO parameters for repeatable behavior. + hint:Query hint:optimizer "Runtime". + hint:Query hint:RTO-sampleType "DENSE". + hint:Query hint:RTO-limit "100". + hint:Query hint:RTO-nedges "1". + + <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer3/Product97> rdfs:label ?label . + <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer3/Product97> rdfs:comment ?comment . + <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer3/Product97> bsbm:producer ?p . + ?p rdfs:label ?producer . + <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer3/Product97> dc:publisher ?p . + <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer3/Product97> bsbm:productFeature ?f . + ?f rdfs:label ?productFeature . + <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer3/Product97> bsbm:productPropertyTextual1 ?propertyTextual1 . + <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer3/Product97> bsbm:productPropertyTextual2 ?propertyTextual2 . + <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer3/Product97> bsbm:productPropertyTextual3 ?propertyTextual3 . + <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer3/Product97> bsbm:productPropertyNumeric1 ?propertyNumeric1 . + <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer3/Product97> bsbm:productPropertyNumeric2 ?propertyNumeric2 . + OPTIONAL { <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer3/Product97> bsbm:productPropertyTextual4 ?propertyTextual4 } + OPTIONAL { <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer3/Product97> bsbm:productPropertyTextual5 ?propertyTextual5 } + OPTIONAL { <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer3/Product97> bsbm:productPropertyNumeric4 ?propertyNumeric4 } +} Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q2.srx =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q2.srx (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q2.srx 2014-01-07 18:28:20 UTC (rev 7743) @@ -0,0 +1,14 @@ +<?xml version="1.0"?> +<sparql xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:xs="http://www.w3.org/2001/XMLSchema#" xmlns="http://www.w3.org/2005/sparql-results#"> + <head> + <variable name="count" /> + </head> + <results> + <result> + <binding name="count"> + <literal datatype="http://www.w3.org/2001/XMLSchema#integer">30</literal> + </binding> + </result> + </results> +</sparql> Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q3.rq =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q3.rq (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q3.rq 2014-01-07 18:28:20 UTC (rev 7743) @@ -0,0 +1,31 @@ +# BSBM Q3 on pc100. + +PREFIX bsbm-inst: <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/> +PREFIX bsbm: <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/> +PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> +PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> + +SELECT (COUNT(*) as ?count) +#SELECT ?product ?label +WHERE { + + # Control all RTO parameters for repeatable behavior. + hint:Query hint:optimizer "Runtime". + hint:Query hint:RTO-sampleType "DENSE". + hint:Query hint:RTO-limit "100". + hint:Query hint:RTO-nedges "1". + + ?product rdfs:label ?label . + ?product a <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/ProductType11> . + ?product bsbm:productFeature <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/ProductFeature54> . + ?product bsbm:productPropertyNumeric1 ?p1 . + FILTER ( ?p1 > 147 ) + ?product bsbm:productPropertyNumeric3 ?p3 . + FILTER (?p3 < 91 ) + OPTIONAL { + ?product bsbm:productFeature <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/ProductFeature442> . + ?product rdfs:label ?testVar } + FILTER (!bound(?testVar)) +} +ORDER BY ?label +LIMIT 10 Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q3.srx =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q3.srx (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q3.srx 2014-01-07 18:28:20 UTC (rev 7743) @@ -0,0 +1,14 @@ +<?xml version="1.0"?> +<sparql xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:xs="http://www.w3.org/2001/XMLSchema#" xmlns="http://www.w3.org/2005/sparql-results#"> + <head> + <variable name="count" /> + </head> + <results> + <result> + <binding name="count"> + <literal datatype="http://www.w3.org/2001/XMLSchema#integer">0</literal> + </binding> + </result> + </results> +</sparql> Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q4.rq =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q4.rq (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q4.rq 2014-01-07 18:28:20 UTC (rev 7743) @@ -0,0 +1,37 @@ +# BSBM Q4 on pc100. + +PREFIX bsbm-inst: <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/> +PREFIX bsbm: <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/> +PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> +PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> + +SELECT DISTINCT ?product ?label ?propertyTextual +WHERE { + + # Control all RTO parameters for repeatable behavior. + hint:Query hint:optimizer "Runtime". + hint:Query hint:RTO-sampleType "DENSE". + hint:Query hint:RTO-limit "100". + hint:Query hint:RTO-nedges "1". + + { + ?product rdfs:label ?label . + ?product rdf:type <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/ProductType19> . + ?product bsbm:productFeature <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/ProductFeature158> . + ?product bsbm:productFeature <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/ProductFeature865> . + ?product bsbm:productPropertyTextual1 ?propertyTextual . + ?product bsbm:productPropertyNumeric1 ?p1 . + FILTER ( ?p1 > 217 ) + } UNION { + ?product rdfs:label ?label . + ?product rdf:type <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/ProductType19> . + ?product bsbm:productFeature <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/ProductFeature158> . + ?product bsbm:productFeature <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/ProductFeature872> . + ?product bsbm:productPropertyTextual1 ?propertyTextual . + ?product bsbm:productPropertyNumeric2 ?p2 . + FILTER ( ?p2> 124 ) + } +} +ORDER BY ?label +OFFSET 5 +LIMIT 10 \ No newline at end of file Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q4.srx =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q4.srx (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q4.srx 2014-01-07 18:28:20 UTC (rev 7743) @@ -0,0 +1,11 @@ +<?xml version="1.0"?> +<sparql xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:xs="http://www.w3.org/2001/XMLSchema#" xmlns="http://www.w3.org/2005/sparql-results#"> + <head> + <variable name="product" /> + <variable name="label" /> + <variable name="propertyTextual" /> + </head> + <results> + </results> +</sparql> Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q5.rq =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q5.rq (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q5.rq 2014-01-07 18:28:20 UTC (rev 7743) @@ -0,0 +1,29 @@ +# BSBM Q5 on pc100. + +PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> +PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> +PREFIX bsbm: <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/> + +SELECT (COUNT(DISTINCT *) as ?count) +#SELECT DISTINCT ?product ?productLabel +WHERE { + + # Control all RTO parameters for repeatable behavior. + hint:Query hint:optimizer "Runtime". + hint:Query hint:RTO-sampleType "DENSE". + hint:Query hint:RTO-limit "100". + hint:Query hint:RTO-nedges "1". + + ?product rdfs:label ?productLabel . + FILTER (<http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer1/Product5> != ?product) + <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer1/Product5> bsbm:productFeature ?prodFeature . + ?product bsbm:productFeature ?prodFeature . + <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer1/Product5> bsbm:productPropertyNumeric1 ?origProperty1 . + ?product bsbm:productPropertyNumeric1 ?simProperty1 . + FILTER (?simProperty1 < (?origProperty1 + 120) && ?simProperty1 > (?origProperty1 - 120)) + <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer1/Product5> bsbm:productPropertyNumeric2 ?origProperty2 . + ?product bsbm:productPropertyNumeric2 ?simProperty2 . + FILTER (?simProperty2 < (?origProperty2 + 170) && ?simProperty2 > (?origProperty2 - 170)) +} +ORDER BY ?productLabel +LIMIT 5 Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q5.srx =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q5.srx (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q5.srx 2014-01-07 18:28:20 UTC (rev 7743) @@ -0,0 +1,14 @@ +<?xml version="1.0"?> +<sparql xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:xs="http://www.w3.org/2001/XMLSchema#" xmlns="http://www.w3.org/2005/sparql-results#"> + <head> + <variable name="count" /> + </head> + <results> + <result> + <binding name="count"> + <literal datatype="http://www.w3.org/2001/XMLSchema#integer">1</literal> + </binding> + </result> + </results> +</sparql> Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q7.rq =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q7.rq (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q7.rq 2014-01-07 18:28:20 UTC (rev 7743) @@ -0,0 +1,39 @@ +# BSBM Q7 on pc100. + +PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> +PREFIX rev: <http://purl.org/stuff/rev#> +PREFIX foaf: <http://xmlns.com/foaf/0.1/> +PREFIX bsbm: <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/> +PREFIX dc: <http://purl.org/dc/elements/1.1/> + +SELECT (COUNT(*) as ?count) +#SELECT ?productLabel ?offer ?price ?vendor ?vendorTitle ?review ?revTitle +# ?reviewer ?revName ?rating1 ?rating2 +WHERE { + + # Control all RTO parameters for repeatable behavior. + hint:Query hint:optimizer "Runtime". + hint:Query hint:RTO-sampleType "DENSE". + hint:Query hint:RTO-limit "100". + hint:Query hint:RTO-nedges "1". + + <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer1/Product7> rdfs:label ?productLabel . + OPTIONAL { + ?offer bsbm:product <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer1/Product7> . + ?offer bsbm:price ?price . + ?offer bsbm:vendor ?vendor . + ?vendor rdfs:label ?vendorTitle . + ?vendor bsbm:country <http://downlode.org/rdf/iso-3166/countries#DE> . + ?offer dc:publisher ?vendor . + ?offer bsbm:validTo ?date . + FILTER (?date > "2008-06-20T00:00:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) + } + OPTIONAL { + ?review bsbm:reviewFor <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer1/Product7> . + ?review rev:reviewer ?reviewer . + ?reviewer foaf:name ?revName . + ?review dc:title ?revTitle . + OPTIONAL { ?review bsbm:rating1 ?rating1 . } + OPTIONAL { ?review bsbm:rating2 ?rating2 . } + } +} Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q7.srx =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q7.srx (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q7.srx 2014-01-07 18:28:20 UTC (rev 7743) @@ -0,0 +1,14 @@ +<?xml version="1.0"?> +<sparql xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:xs="http://www.w3.org/2001/XMLSchema#" xmlns="http://www.w3.org/2005/sparql-results#"> + <head> + <variable name="count" /> + </head> + <results> + <result> + <binding name="count"> + <literal datatype="http://www.w3.org/2001/XMLSchema#integer">6</literal> + </binding> + </result> + </results> +</sparql> Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q8.rq =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q8.rq (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q8.rq 2014-01-07 18:28:20 UTC (rev 7743) @@ -0,0 +1,31 @@ +# BSBM Q8 on pc100. + +PREFIX bsbm: <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/> +PREFIX dc: <http://purl.org/dc/elements/1.1/> +PREFIX rev: <http://purl.org/stuff/rev#> +PREFIX foaf: <http://xmlns.com/foaf/0.1/> + +SELECT (COUNT(*) as ?count) +#SELECT ?title ?text ?reviewDate ?reviewer ?reviewerName ?rating1 ?rating2 ?rating3 ?rating4 +WHERE { + + # Control all RTO parameters for repeatable behavior. + hint:Query hint:optimizer "Runtime". + hint:Query hint:RTO-sampleType "DENSE". + hint:Query hint:RTO-limit "100". + hint:Query hint:RTO-nedges "1". + + ?review bsbm:reviewFor <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer1/Product43> . + ?review dc:title ?title . + ?review rev:text ?text . + FILTER langMatches( lang(?text), "EN" ) + ?review bsbm:reviewDate ?reviewDate . + ?review rev:reviewer ?reviewer . + ?reviewer foaf:name ?reviewerName . + OPTIONAL { ?review bsbm:rating1 ?rating1 . } + OPTIONAL { ?review bsbm:rating2 ?rating2 . } + OPTIONAL { ?review bsbm:rating3 ?rating3 . } + OPTIONAL { ?review bsbm:rating4 ?rating4 . } +} +ORDER BY DESC(?reviewDate) +LIMIT 20 Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q8.srx =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q8.srx (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q8.srx 2014-01-07 18:28:20 UTC (rev 7743) @@ -0,0 +1,14 @@ +<?xml version="1.0"?> +<sparql xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:xs="http://www.w3.org/2001/XMLSchema#" xmlns="http://www.w3.org/2005/sparql-results#"> + <head> + <variable name="count" /> + </head> + <results> + <result> + <binding name="count"> + <literal datatype="http://www.w3.org/2001/XMLSchema#integer">11</literal> + </binding> + </result> + </results> +</sparql> Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/LUBM-Q2.rq =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/LUBM-Q2.rq (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/LUBM-Q2.rq 2014-01-07 18:28:20 UTC (rev 7743) @@ -0,0 +1,18 @@ +# LUBM Q2. +PREFIX ub: <http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#> +PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> +#SELECT ?x ?y ?z +SELECT (COUNT(*) as ?count) +WHERE{ + # Control all RTO parameters for repeatable behavior. + hint:Group hint:optimizer "Runtime". + hint:Group hint:RTO-sampleType "DENSE". + hint:Group hint:RTO-limit "100". + hint:Group hint:RTO-nedges "1". + ?x a ub:GraduateStudent . + ?y a ub:University . + ?z a ub:Department . + ?x ub:memberOf ?z . + ?z ub:subOrganizationOf ?y . + ?x ub:undergraduateDegreeFrom ?y +} \ No newline at end of file Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/LUBM-Q2.srx =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/LUBM-Q2.srx (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/LUBM-Q2.srx 2014-01-07 18:28:20 UTC (rev 7743) @@ -0,0 +1,14 @@ +<?xml version="1.0"?> +<sparql xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:xs="http://www.w3.org/2001/XMLSchema#" xmlns="http://www.w3.org/2005/sparql-results#"> + <head> + <variable name="count" /> + </head> + <results> + <result> + <binding name="count"> + <literal datatype="http://www.w3.org/2001/XMLSchema#integer">0</literal> + </binding> + </result> + </results> +</sparql> Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/LUBM-Q8.rq =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/LUBM-Q8.rq (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/LUBM-Q8.rq 2014-01-07 18:28:20 UTC (rev 7743) @@ -0,0 +1,17 @@ +# LUBM Q8. +PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> +PREFIX ub: <http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#> +#SELECT ?x ?y ?z +SELECT (COUNT(*) as ?count) +WHERE{ + # Control all RTO parameters for repeatable behavior. + hint:Group hint:optimizer "Runtime". + hint:Group hint:RTO-sampleType "DENSE". + hint:Group hint:RTO-limit "100". + hint:Group hint:RTO-nedges "1". + ?y a ub:Department . + ?x a ub:Student; + ub:memberOf ?y . + ?y ub:subOrganizationOf <http://www.University0.edu> . + ?x ub:emailAddress ?z . +} \ No newline at end of file Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/LUBM-Q8.srx =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/LUBM-Q8.srx (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/LUBM-Q8.srx 2014-01-07 18:28:20 UTC (rev 7743) @@ -0,0 +1,14 @@ +<?xml version="1.0"?> +<sparql xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:xs="http://www.w3.org/2001/XMLSchema#" xmlns="http://www.w3.org/2005/sparql-results#"> + <head> + <variable name="count" /> + </head> + <results> + <result> + <binding name="count"> + <literal datatype="http://www.w3.org/2001/XMLSchema#integer">6463</literal> + </binding> + </result> + </results> +</sparql> Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/LUBM-Q9.rq =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/LUBM-Q9.rq (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/LUBM-Q9.rq 2014-01-07 18:28:20 UTC (rev 7743) @@ -0,0 +1,18 @@ +# LUBM Q9. +PREFIX ub: <http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#> +#SELECT ?x ?y ?z +SELECT (COUNT(*) as ?count) +WHERE { + # Control all RTO parameters for repeatable behavior. + hint:Group hint:optimizer "Runtime". + hint:Group hint:RTO-sampleType "DENSE". + hint:Group hint:RTO-limit "100". + hint:Group hint:RTO-nedges "1". + ?x a ub:Student . # v0 + ?y a ub:Faculty . # v1 + ?z a ub:Course . # v2 + ?x ub:advisor ?y . # v3 + ?y ub:teacherOf ?z . # v4 + ?x ub:takesCourse ?z . # v5 + FILTER (?x != ?y) +} Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/LUBM-Q9.srx =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/LUBM-Q9.srx (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/LUBM-Q9.srx 2014-01-07 18:28:20 UTC (rev 7743) @@ -0,0 +1,14 @@ +<?xml version="1.0"?> +<sparql xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:xs="http://www.w3.org/2001/XMLSchema#" xmlns="http://www.w3.org/2005/sparql-results#"> + <head> + <variable name="count" /> + </head> + <results> + <result> + <binding name="count"> + <literal datatype="http://www.w3.org/2001/XMLSchema#integer">134</literal> + </binding> + </result> + </results> +</sparql> Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/LUBM-U1.rdf =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/LUBM-U1.rdf (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/LUBM-U1.rdf 2014-01-07 18:28:20 UTC (rev 7743) @@ -0,0 +1,201803 @@ +<?xml version="1.0" encoding="UTF-8"?> +<rdf:RDF + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:bigdata="http://www.bigdata.com/rdf#"> + +<rdf:Description rdf:about="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#Dean"> + <subClassOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#Employee"/> + <subClassOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#Faculty"/> + <subClassOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#Professor"/> + <subClassOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.w3.org/2000/01/rdf-schema#Resource"/> + <intersectionOf xmlns="http://www.w3.org/2002/07/owl#" rdf:nodeID="t173"/> +</rdf:Description> + +<rdf:Description rdf:about="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#degreeFrom"> + <rdf:type rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"/> + <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/> + <domain xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#Person"/> + <label xmlns="http://www.w3.org/2000/01/rdf-schema#">has a degree from</label> + <range xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#University"/> + <subPropertyOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#degreeFrom"/> + <inverseOf xmlns="http://www.w3.org/2002/07/owl#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#hasAlumnus"/> +</rdf:Description> + +<rdf:Description rdf:about="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#Department"> + <rdf:type rdf:resource="http://www.w3.org/2000/01/rdf-schema#Class"/> + <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Class"/> + <label xmlns="http://www.w3.org/2000/01/rdf-schema#">university department</label> + <subClassOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#Department"/> + <subClassOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#Organization"/> + <subClassOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.w3.org/2000/01/rdf-schema#Resource"/> +</rdf:Description> + +<rdf:Description rdf:about="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#Director"> + <rdf:type rdf:resource="http://www.w3.org/2000/01/rdf-schema#Class"/> + <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Class"/> + <label xmlns="http://www.w3.org/2000/01/rdf-schema#">director</label> + <subClassOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#Director"/> + <subClassOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.w3.org/2000/01/rdf-schema#Resource"/> + <intersectionOf xmlns="http://www.w3.org/2002/07/owl#" rdf:nodeID="t159"/> +</rdf:Description> + +<rdf:Description rdf:about="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#doctoralDegreeFrom"> + <rdf:type rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"/> + <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/> + <domain xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#Person"/> + <label xmlns="http://www.w3.org/2000/01/rdf-schema#">has a doctoral degree from</label> + <range xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#University"/> + <subPropertyOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#degreeFrom"/> + <subPropertyOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#doctoralDegreeFrom"/> +</rdf:Description> + +<rdf:Description rdf:about="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#emailAddress"> + <rdf:type rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"/> + <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#DatatypeProperty"/> + <domain xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#Person"/> + <label xmlns="http://www.w3.org/2000/01/rdf-schema#">can be reached at</label> + <subPropertyOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#emailAddress"/> +</rdf:Description> + +<rdf:Description rdf:about="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#Employee"> + <rdf:type rdf:resource="http://www.w3.org/2000/01/rdf-schema#Class"/> + <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Class"/> + <label xmlns="http://www.w3.org/2000/01/rdf-schema#">Employee</label> + <subClassOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#Employee"/> + <subClassOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.w3.org/2000/01/rdf-schema#Resource"/> + <intersectionOf xmlns="http://www.w3.org/2002/07/owl#" rdf:nodeID="t160"/> +</rdf:Description> + +<rdf:Description rdf:about="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#Faculty"> + <rdf:type rdf:resource="http://www.w3.org/2000/01/rdf-schema#Class"/> + <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Class"/> + <label xmlns="http://www.w3.org/2000/01/rdf-schema#">faculty member</label> + <subClassOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#Employee"/> + <subClassOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#Faculty"/> + <subClassOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.w3.org/2000/01/rdf-schema#Resource"/> +</rdf:Description> + +<rdf:Description rdf:about="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#FullProfessor"> + <rdf:type rdf:resource="http://www.w3.org/2000/01/rdf-schema#Class"/> + <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Class"/> + <label xmlns="http://www.w3.org/2000/01/rdf-schema#">full professor</label> + <subClassOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#Employee"/> + <subClassOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#Faculty"/> + <subClassOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#FullProfessor"/> + <subClassOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#Professor"/> + <subClassOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.w3.org/2000/01/rdf-schema#Resource"/> +</rdf:Description> + +<rdf:Description rdf:about="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#GraduateCourse"> + <rdf:type rdf:resource="http://www.w3.org/2000/01/rdf-schema#Class"/> + <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Class"/> + <label xmlns="http://www.w3.org/2000/01/rdf-schema#">Graduate Level Courses</label> + <subClassOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#Course"/> + <subClassOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#GraduateCourse"/> + <subClassOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#Work"/> + <subClassOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.w3.org/2000/01/rdf-schema#Resource"/> +</rdf:Description> + +<rdf:Description rdf:about="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#GraduateStudent"> + <rdf:type rdf:resource="http://www.w3.org/2000/01/rdf-schema#Class"/> + <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Class"/> + <label xmlns="http://www.w3.org/2000/01/rdf-schema#">graduate student</label> + <subClassOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#GraduateStudent"/> + <subClassOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#Person"/> + <subClassOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.w3.org/2000/01/rdf-schema#Resource"/> + <subClassOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:nodeID="t163"/> +</rdf:Description> + +<rdf:Description rdf:about="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#hasAlumnus"> + <rdf:type rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"/> + <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/> + <domain xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#University"/> + <label xmlns="http://www.w3.org/2000/01/rdf-schema#">has as an alumnus</label> + <range xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#Person"/> + <subPropertyOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#hasAlumnus"/> + <inverseOf xmlns="http://www.w3.org/2002/07/owl#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#degreeFrom"/> +</rdf:Description> + +<rdf:Description rdf:about="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#headOf"> + <rdf:type rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"/> + <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/> + <label xmlns="http://www.w3.org/2000/01/rdf-schema#">is the head of</label> + <subPropertyOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#headOf"/> + <subPropertyOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#memberOf"/> + <subPropertyOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#worksFor"/> +</rdf:Description> + +<rdf:Description rdf:about="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#Institute"> + <rdf:type rdf:resource="http://www.w3.org/2000/01/rdf-schema#Class"/> + <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Class"/> + <label xmlns="http://www.w3.org/2000/01/rdf-schema#">institute</label> + <subClassOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#Institute"/> + <subClassOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#Organization"/> + <subClassOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.w3.org/2000/01/rdf-schema#Resource"/> +</rdf:Description> + +<rdf:Description rdf:about="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#JournalArticle"> + <rdf:type rdf:resource="http://www.w3.org/2000/01/rdf-schema#Class"/> + <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Class"/> + <label xmlns="http://www.w3.org/2000/01/rdf-schema#">journal article</label> + <subClassOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#Article"/> + <subClassOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#JournalArticle"/> + <subClassOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#Publication"/> + <subClassOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.w3.org/2000/01/rdf-schema#Resource"/> +</rdf:Description> + +<rdf:Description rdf:about="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#Lecturer"> + <rdf:type rdf:resource="http://www.w3.org/2000/01/rdf-schema#Class"/> + <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Class"/> + <label xmlns="http://www.w3.org/2000/01/rdf-schema#">lecturer</label> + <subClassOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#Employee"/> +</rdf:Description> + +<rdf:Description rdf:about="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl"> + <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Ontology"/> + <comment xmlns="http://www.w3.org/2000/01/rdf-schema#">An university ontology for benchmark tests</comment> + <label xmlns="http://www.w3.org/2000/01/rdf-schema#">Univ-bench Ontology</label> + <versionInfo xmlns="http://www.w3.org/2002/07/owl#">univ-bench-ontology-owl, ver April 1, 2004</versionInfo> +</rdf:Description> + +<rdf:Description rdf:about="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#AdministrativeStaff"> + <rdf:type rdf:resource="http://www.w3.org/2000/01/rdf-schema#Class"/> + <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Class"/> + <label xmlns="http://www.w3.org/2000/01/rdf-schema#">administrative staff worker</label> + <subClassOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#AdministrativeStaff"/> + <subClassOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#Employee"/> + <subClassOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.w3.org/2000/01/rdf-schema#Resource"/> +</rdf:Description> + +<rdf:Description rdf:about="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#advisor"> + <rdf:type rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"/> + <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/> + <domain xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#Person"/> + <label xmlns="http://www.w3.org/2000/01/rdf-schema#">is being advised by</label> + <range xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#Professor"/> + <subPropertyOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#advisor"/> +</rdf:Description> + +<rdf:Description rdf:about="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#affiliatedOrganizationOf"> + <rdf:type rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"/> + <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/> + <domain xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#Organization"/> + <label xmlns="http://www.w3.org/2000/01/rdf-schema#">is affiliated with</label> + <range xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#Organization"/> + <subPropertyOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#affiliatedOrganizationOf"/> +</rdf:Description> + +<rdf:Description rdf:about="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#affiliateOf"> + <rdf:type rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"/> + <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/> + <domain xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#Organization"/> + <label xmlns="http://www.w3.org/2000/01/rdf-schema#">is affiliated with</label> + <range xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#Person"/> + <subPropertyOf xmlns="http://www.w3.org/2000/01/rdf-schema#" rdf:resource="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#affiliateOf"/> +</rdf:Description> + +<rdf:Description rdf:about="http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#age"> + <rdf:type rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"/> + <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#DatatypeProperty"/> + <domain xmlns="htt... [truncated message content] |