You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2011/10/07 14:27:10 UTC
svn commit: r1180022 - in /incubator/jena/Experimental/JenaPerf/trunk:
Benchmarks/BSBM/ Benchmarks/LUBM/ Benchmarks/SP2B/ Benchmarks/SP2B/Queries/
src/main/scala/org/apache/jena/perf/
Author: andy
Date: Fri Oct 7 12:27:09 2011
New Revision: 1180022
URL: http://svn.apache.org/viewvc?rev=1180022&view=rev
Log: (empty)
Added:
incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/BSBM/
incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/BSBM/README.txt (with props)
incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/
incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/
incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/README
incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/X
incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q1.rq
incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q10.rq
incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q11.rq
incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q12a.rq
incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q12b.rq
incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q12c.rq
incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q2.rq
incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q3a.rq
incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q3b.rq
incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q3c.rq
incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q4.rq
incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q5a.rq
incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q5b.rq
incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q6.rq
incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q7.rq
incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q8.rq
incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q9.rq
incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/sp2b_queries.txt (with props)
incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/README.txt (with props)
incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/manifest.ttl (with props)
Modified:
incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/LUBM/README.txt
incubator/jena/Experimental/JenaPerf/trunk/src/main/scala/org/apache/jena/perf/PerfMain.scala
Added: incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/BSBM/README.txt
URL: http://svn.apache.org/viewvc/incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/BSBM/README.txt?rev=1180022&view=auto
==============================================================================
--- incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/BSBM/README.txt (added)
+++ incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/BSBM/README.txt Fri Oct 7 12:27:09 2011
@@ -0,0 +1,9 @@
+http://www4.wiwiss.fu-berlin.de/bizer/BerlinSPARQLBenchmark/
+
+Code: GPL:
+http://sourceforge.net/projects/bsbmtools/
+http://sourceforge.net/projects/bibm/
+
+The query templates are available in teh source code (so are GPL).
+You need the locally generated data to run queries as the locally
+generated data includes the paramters for the query templates.
Propchange: incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/BSBM/README.txt
------------------------------------------------------------------------------
svn:mime-type = text/plain
Modified: incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/LUBM/README.txt
URL: http://svn.apache.org/viewvc/incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/LUBM/README.txt?rev=1180022&r1=1180021&r2=1180022&view=diff
==============================================================================
--- incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/LUBM/README.txt (original)
+++ incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/LUBM/README.txt Fri Oct 7 12:27:09 2011
@@ -1,5 +1,14 @@
http://swat.cse.lehigh.edu/projects/lubm/
+SPARQL Queries:
+Manual translations from the original non-SPAQL queries.
+
+See also:
+
+Guo, Yuanbo, Pan, Zhengxiang and Heflin, Jeff .
+LUBM: A Benchmark for OWL Knowledge Base Systems.
+Web Semantics. 3( 2) July 2005. pp.158-182.
+
Code:
License: GNU General Public License (GPL)
http://projects.semwebcentral.org/projects/lubm/
Added: incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/README
URL: http://svn.apache.org/viewvc/incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/README?rev=1180022&view=auto
==============================================================================
--- incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/README (added)
+++ incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/README Fri Oct 7 12:27:09 2011
@@ -0,0 +1,25 @@
+*******************************************************************
+************ THE SP^2B SPARQL PERFORMANCE BENCHMARK ***************
+*******************************************************************
+SP^2B is a Performance Benchmark for the SPARQL query language.
+The project homepage at
+
+ http://dbis.informatik.uni-freiburg.de/index.php?project=SP2B
+
+provides more information on the benchmark.
+*******************************************************************
+
+=================================
+******* TABLE OF CONTENTS *******
+=================================
+= 1. The Benchmark Queries =
+=================================
+
+
+1. The Benchmark Queries
+------------------------
+This directory contains the benchmark queries. Each query is contained
+into an individual file of the form 'q<i>.sparql', which also contains
+the prefix definition for the respective query. Additionally, the file
+'sp2b_queries.txt' contains all queries at once, including textual
+descriptions.
Added: incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/X
URL: http://svn.apache.org/viewvc/incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/X?rev=1180022&view=auto
==============================================================================
--- incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/X (added)
+++ incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/X Fri Oct 7 12:27:09 2011
@@ -0,0 +1,27 @@
+X="
+q1.rq
+q2.rq
+q3a.rq
+q3b.rq
+q3c.rq
+q4.rq
+q5a.rq
+q5b.rq
+q6.rq
+q7.rq
+q8.rq
+q9.rq
+q10.rq
+q11.rq
+q12a.rq
+q12b.rq
+q12c.rq
+"
+for x in $X
+do
+ echo "<#$x> pm:name \"Query $x\" ;"
+ echo " pm:action qf:$x ."
+ echo
+ done
+
+
\ No newline at end of file
Added: incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q1.rq
URL: http://svn.apache.org/viewvc/incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q1.rq?rev=1180022&view=auto
==============================================================================
--- incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q1.rq (added)
+++ incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q1.rq Fri Oct 7 12:27:09 2011
@@ -0,0 +1,12 @@
+PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
+PREFIX dc: <http://purl.org/dc/elements/1.1/>
+PREFIX dcterms: <http://purl.org/dc/terms/>
+PREFIX bench: <http://localhost/vocabulary/bench/>
+PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
+
+SELECT ?yr
+WHERE {
+ ?journal rdf:type bench:Journal .
+ ?journal dc:title "Journal 1 (1940)"^^xsd:string .
+ ?journal dcterms:issued ?yr
+}
Added: incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q10.rq
URL: http://svn.apache.org/viewvc/incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q10.rq?rev=1180022&view=auto
==============================================================================
--- incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q10.rq (added)
+++ incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q10.rq Fri Oct 7 12:27:09 2011
@@ -0,0 +1,6 @@
+PREFIX person: <http://localhost/persons/>
+
+SELECT ?subject ?predicate
+WHERE {
+ ?subject ?predicate person:Paul_Erdoes
+}
Added: incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q11.rq
URL: http://svn.apache.org/viewvc/incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q11.rq?rev=1180022&view=auto
==============================================================================
--- incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q11.rq (added)
+++ incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q11.rq Fri Oct 7 12:27:09 2011
@@ -0,0 +1,9 @@
+PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
+
+SELECT ?ee
+WHERE {
+ ?publication rdfs:seeAlso ?ee
+}
+ORDER BY ?ee
+LIMIT 10
+OFFSET 50
Added: incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q12a.rq
URL: http://svn.apache.org/viewvc/incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q12a.rq?rev=1180022&view=auto
==============================================================================
--- incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q12a.rq (added)
+++ incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q12a.rq Fri Oct 7 12:27:09 2011
@@ -0,0 +1,14 @@
+PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
+PREFIX foaf: <http://xmlns.com/foaf/0.1/>
+PREFIX bench: <http://localhost/vocabulary/bench/>
+PREFIX dc: <http://purl.org/dc/elements/1.1/>
+
+ASK {
+ ?article rdf:type bench:Article .
+ ?article dc:creator ?person1 .
+ ?inproc rdf:type bench:Inproceedings .
+ ?inproc dc:creator ?person2 .
+ ?person1 foaf:name ?name1 .
+ ?person2 foaf:name ?name2
+ FILTER (?name1=?name2)
+}
Added: incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q12b.rq
URL: http://svn.apache.org/viewvc/incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q12b.rq?rev=1180022&view=auto
==============================================================================
--- incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q12b.rq (added)
+++ incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q12b.rq Fri Oct 7 12:27:09 2011
@@ -0,0 +1,25 @@
+PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
+PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
+PREFIX foaf: <http://xmlns.com/foaf/0.1/>
+PREFIX dc: <http://purl.org/dc/elements/1.1/>
+
+ASK {
+ ?erdoes rdf:type foaf:Person .
+ ?erdoes foaf:name "Paul Erdoes"^^xsd:string .
+ {
+ ?document dc:creator ?erdoes .
+ ?document dc:creator ?author .
+ ?document2 dc:creator ?author .
+ ?document2 dc:creator ?author2 .
+ ?author2 foaf:name ?name
+ FILTER (?author!=?erdoes &&
+ ?document2!=?document &&
+ ?author2!=?erdoes &&
+ ?author2!=?author)
+ } UNION {
+ ?document dc:creator ?erdoes .
+ ?document dc:creator ?author .
+ ?author foaf:name ?name
+ FILTER (?author!=?erdoes)
+ }
+}
Added: incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q12c.rq
URL: http://svn.apache.org/viewvc/incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q12c.rq?rev=1180022&view=auto
==============================================================================
--- incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q12c.rq (added)
+++ incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q12c.rq Fri Oct 7 12:27:09 2011
@@ -0,0 +1,7 @@
+PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
+PREFIX person: <http://localhost/persons/>
+PREFIX foaf: <http://xmlns.com/foaf/0.1/>
+
+ASK {
+ person:John_Q_Public rdf:type foaf:Person.
+}
Added: incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q2.rq
URL: http://svn.apache.org/viewvc/incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q2.rq?rev=1180022&view=auto
==============================================================================
--- incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q2.rq (added)
+++ incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q2.rq Fri Oct 7 12:27:09 2011
@@ -0,0 +1,25 @@
+PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
+PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
+PREFIX swrc: <http://swrc.ontoware.org/ontology#>
+PREFIX foaf: <http://xmlns.com/foaf/0.1/>
+PREFIX bench: <http://localhost/vocabulary/bench/>
+PREFIX dc: <http://purl.org/dc/elements/1.1/>
+PREFIX dcterms: <http://purl.org/dc/terms/>
+
+SELECT ?inproc ?author ?booktitle ?title
+ ?proc ?ee ?page ?url ?yr ?abstract
+WHERE {
+ ?inproc rdf:type bench:Inproceedings .
+ ?inproc dc:creator ?author .
+ ?inproc bench:booktitle ?booktitle .
+ ?inproc dc:title ?title .
+ ?inproc dcterms:partOf ?proc .
+ ?inproc rdfs:seeAlso ?ee .
+ ?inproc swrc:pages ?page .
+ ?inproc foaf:homepage ?url .
+ ?inproc dcterms:issued ?yr
+ OPTIONAL {
+ ?inproc bench:abstract ?abstract
+ }
+}
+ORDER BY ?yr
Added: incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q3a.rq
URL: http://svn.apache.org/viewvc/incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q3a.rq?rev=1180022&view=auto
==============================================================================
--- incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q3a.rq (added)
+++ incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q3a.rq Fri Oct 7 12:27:09 2011
@@ -0,0 +1,10 @@
+PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
+PREFIX bench: <http://localhost/vocabulary/bench/>
+PREFIX swrc: <http://swrc.ontoware.org/ontology#>
+
+SELECT ?article
+WHERE {
+ ?article rdf:type bench:Article .
+ ?article ?property ?value
+ FILTER (?property=swrc:pages)
+}
Added: incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q3b.rq
URL: http://svn.apache.org/viewvc/incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q3b.rq?rev=1180022&view=auto
==============================================================================
--- incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q3b.rq (added)
+++ incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q3b.rq Fri Oct 7 12:27:09 2011
@@ -0,0 +1,10 @@
+PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
+PREFIX bench: <http://localhost/vocabulary/bench/>
+PREFIX swrc: <http://swrc.ontoware.org/ontology#>
+
+SELECT ?article
+WHERE {
+ ?article rdf:type bench:Article .
+ ?article ?property ?value
+ FILTER (?property=swrc:month)
+}
Added: incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q3c.rq
URL: http://svn.apache.org/viewvc/incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q3c.rq?rev=1180022&view=auto
==============================================================================
--- incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q3c.rq (added)
+++ incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q3c.rq Fri Oct 7 12:27:09 2011
@@ -0,0 +1,10 @@
+PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
+PREFIX swrc: <http://swrc.ontoware.org/ontology#>
+PREFIX bench: <http://localhost/vocabulary/bench/>
+
+SELECT ?article
+WHERE {
+ ?article rdf:type bench:Article .
+ ?article ?property ?value
+ FILTER (?property=swrc:isbn)
+}
Added: incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q4.rq
URL: http://svn.apache.org/viewvc/incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q4.rq?rev=1180022&view=auto
==============================================================================
--- incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q4.rq (added)
+++ incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q4.rq Fri Oct 7 12:27:09 2011
@@ -0,0 +1,19 @@
+PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
+PREFIX bench: <http://localhost/vocabulary/bench/>
+PREFIX dc: <http://purl.org/dc/elements/1.1/>
+PREFIX dcterms: <http://purl.org/dc/terms/>
+PREFIX foaf: <http://xmlns.com/foaf/0.1/>
+PREFIX swrc: <http://swrc.ontoware.org/ontology#>
+
+SELECT DISTINCT ?name1 ?name2
+WHERE {
+ ?article1 rdf:type bench:Article .
+ ?article2 rdf:type bench:Article .
+ ?article1 dc:creator ?author1 .
+ ?author1 foaf:name ?name1 .
+ ?article2 dc:creator ?author2 .
+ ?author2 foaf:name ?name2 .
+ ?article1 swrc:journal ?journal .
+ ?article2 swrc:journal ?journal
+ FILTER (?name1<?name2)
+}
Added: incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q5a.rq
URL: http://svn.apache.org/viewvc/incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q5a.rq?rev=1180022&view=auto
==============================================================================
--- incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q5a.rq (added)
+++ incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q5a.rq Fri Oct 7 12:27:09 2011
@@ -0,0 +1,15 @@
+PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
+PREFIX foaf: <http://xmlns.com/foaf/0.1/>
+PREFIX bench: <http://localhost/vocabulary/bench/>
+PREFIX dc: <http://purl.org/dc/elements/1.1/>
+
+SELECT DISTINCT ?person ?name
+WHERE {
+ ?article rdf:type bench:Article .
+ ?article dc:creator ?person .
+ ?inproc rdf:type bench:Inproceedings .
+ ?inproc dc:creator ?person2 .
+ ?person foaf:name ?name .
+ ?person2 foaf:name ?name2
+ FILTER (?name=?name2)
+}
Added: incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q5b.rq
URL: http://svn.apache.org/viewvc/incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q5b.rq?rev=1180022&view=auto
==============================================================================
--- incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q5b.rq (added)
+++ incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q5b.rq Fri Oct 7 12:27:09 2011
@@ -0,0 +1,13 @@
+PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
+PREFIX foaf: <http://xmlns.com/foaf/0.1/>
+PREFIX bench: <http://localhost/vocabulary/bench/>
+PREFIX dc: <http://purl.org/dc/elements/1.1/>
+
+SELECT DISTINCT ?person ?name
+WHERE {
+ ?article rdf:type bench:Article .
+ ?article dc:creator ?person .
+ ?inproc rdf:type bench:Inproceedings .
+ ?inproc dc:creator ?person .
+ ?person foaf:name ?name
+}
Added: incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q6.rq
URL: http://svn.apache.org/viewvc/incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q6.rq?rev=1180022&view=auto
==============================================================================
--- incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q6.rq (added)
+++ incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q6.rq Fri Oct 7 12:27:09 2011
@@ -0,0 +1,21 @@
+PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
+PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
+PREFIX foaf: <http://xmlns.com/foaf/0.1/>
+PREFIX dc: <http://purl.org/dc/elements/1.1/>
+PREFIX dcterms: <http://purl.org/dc/terms/>
+
+SELECT ?yr ?name ?document
+WHERE {
+ ?class rdfs:subClassOf foaf:Document .
+ ?document rdf:type ?class .
+ ?document dcterms:issued ?yr .
+ ?document dc:creator ?author .
+ ?author foaf:name ?name
+ OPTIONAL {
+ ?class2 rdfs:subClassOf foaf:Document .
+ ?document2 rdf:type ?class2 .
+ ?document2 dcterms:issued ?yr2 .
+ ?document2 dc:creator ?author2
+ FILTER (?author=?author2 && ?yr2<?yr)
+ } FILTER (!bound(?author2))
+}
Added: incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q7.rq
URL: http://svn.apache.org/viewvc/incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q7.rq?rev=1180022&view=auto
==============================================================================
--- incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q7.rq (added)
+++ incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q7.rq Fri Oct 7 12:27:09 2011
@@ -0,0 +1,26 @@
+PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
+PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
+PREFIX foaf: <http://xmlns.com/foaf/0.1/>
+PREFIX dc: <http://purl.org/dc/elements/1.1/>
+PREFIX dcterms: <http://purl.org/dc/terms/>
+
+SELECT DISTINCT ?title
+WHERE {
+ ?class rdfs:subClassOf foaf:Document .
+ ?doc rdf:type ?class .
+ ?doc dc:title ?title .
+ ?bag2 ?member2 ?doc .
+ ?doc2 dcterms:references ?bag2
+ OPTIONAL {
+ ?class3 rdfs:subClassOf foaf:Document .
+ ?doc3 rdf:type ?class3 .
+ ?doc3 dcterms:references ?bag3 .
+ ?bag3 ?member3 ?doc
+ OPTIONAL {
+ ?class4 rdfs:subClassOf foaf:Document .
+ ?doc4 rdf:type ?class4 .
+ ?doc4 dcterms:references ?bag4 .
+ ?bag4 ?member4 ?doc3
+ } FILTER (!bound(?doc4))
+ } FILTER (!bound(?doc3))
+}
Added: incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q8.rq
URL: http://svn.apache.org/viewvc/incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q8.rq?rev=1180022&view=auto
==============================================================================
--- incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q8.rq (added)
+++ incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q8.rq Fri Oct 7 12:27:09 2011
@@ -0,0 +1,26 @@
+PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
+PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
+PREFIX foaf: <http://xmlns.com/foaf/0.1/>
+PREFIX dc: <http://purl.org/dc/elements/1.1/>
+
+SELECT DISTINCT ?name
+WHERE {
+ ?erdoes rdf:type foaf:Person .
+ ?erdoes foaf:name "Paul Erdoes"^^xsd:string .
+ {
+ ?document dc:creator ?erdoes .
+ ?document dc:creator ?author .
+ ?document2 dc:creator ?author .
+ ?document2 dc:creator ?author2 .
+ ?author2 foaf:name ?name
+ FILTER (?author!=?erdoes &&
+ ?document2!=?document &&
+ ?author2!=?erdoes &&
+ ?author2!=?author)
+ } UNION {
+ ?document dc:creator ?erdoes.
+ ?document dc:creator ?author.
+ ?author foaf:name ?name
+ FILTER (?author!=?erdoes)
+ }
+}
Added: incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q9.rq
URL: http://svn.apache.org/viewvc/incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q9.rq?rev=1180022&view=auto
==============================================================================
--- incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q9.rq (added)
+++ incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/q9.rq Fri Oct 7 12:27:09 2011
@@ -0,0 +1,13 @@
+PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
+PREFIX foaf: <http://xmlns.com/foaf/0.1/>
+
+SELECT DISTINCT ?predicate
+WHERE {
+ {
+ ?person rdf:type foaf:Person .
+ ?subject ?predicate ?person
+ } UNION {
+ ?person rdf:type foaf:Person .
+ ?person ?predicate ?object
+ }
+}
Added: incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/sp2b_queries.txt
URL: http://svn.apache.org/viewvc/incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/sp2b_queries.txt?rev=1180022&view=auto
==============================================================================
--- incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/sp2b_queries.txt (added)
+++ incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/sp2b_queries.txt Fri Oct 7 12:27:09 2011
@@ -0,0 +1,312 @@
+/////////////////////////////////////////////////////////// (Q1)
+/*
+ * Return the year of publication of 'Journal 1 (1940)'.
+*/
+PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
+PREFIX dc: <http://purl.org/dc/elements/1.1/>
+PREFIX dcterms: <http://purl.org/dc/terms/>
+PREFIX bench: <http://localhost/vocabulary/bench/>
+PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
+
+SELECT ?yr
+WHERE {
+ ?journal rdf:type bench:Journal .
+ ?journal dc:title "Journal 1 (1940)"^^xsd:string .
+ ?journal dcterms:issued ?yr
+}
+
+
+/////////////////////////////////////////////////////////// (Q2)
+/*
+ * Extract all inproceedings with properties 'dc:creator',
+ * 'bench:booktitle', 'dc:title', 'swrc:pages',
+ * 'dcterms:partOf', 'rdfs:seeAlso', 'foaf:homepage'
+ * 'dcterms:issued', and optionally 'bench:abstract',
+ * including these properties.
+*/
+PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
+PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
+PREFIX swrc: <http://swrc.ontoware.org/ontology#>
+PREFIX foaf: <http://xmlns.com/foaf/0.1/>
+PREFIX bench: <http://localhost/vocabulary/bench/>
+PREFIX dc: <http://purl.org/dc/elements/1.1/>
+PREFIX dcterms: <http://purl.org/dc/terms/>
+
+SELECT ?inproc ?author ?booktitle ?title
+ ?proc ?ee ?page ?url ?yr ?abstract
+WHERE {
+ ?inproc rdf:type bench:Inproceedings .
+ ?inproc dc:creator ?author .
+ ?inproc bench:booktitle ?booktitle .
+ ?inproc dc:title ?title .
+ ?inproc dcterms:partOf ?proc .
+ ?inproc rdfs:seeAlso ?ee .
+ ?inproc swrc:pages ?page .
+ ?inproc foaf:homepage ?url .
+ ?inproc dcterms:issued ?yr
+ OPTIONAL {
+ ?inproc bench:abstract ?abstract
+ }
+}
+ORDER BY ?yr
+
+
+/////////////////////////////////////////////////////////// (Q3a)
+/*
+ * Select all articles with property 'swrc:pages'.
+*/
+PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
+PREFIX bench: <http://localhost/vocabulary/bench/>
+PREFIX swrc: <http://swrc.ontoware.org/ontology#>
+
+SELECT ?article
+WHERE {
+ ?article rdf:type bench:Article .
+ ?article ?property ?value
+ FILTER (?property=swrc:pages)
+}
+
+
+/////////////////////////////////////////////////////////// (Q3b)
+/*
+ * Select all articles with property 'swrc:month'.
+*/
+PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
+PREFIX bench: <http://localhost/vocabulary/bench/>
+PREFIX swrc: <http://swrc.ontoware.org/ontology#>
+
+SELECT ?article
+WHERE {
+ ?article rdf:type bench:Article .
+ ?article ?property ?value
+ FILTER (?property=swrc:month)
+}
+
+
+/////////////////////////////////////////////////////////// (Q3c)
+/*
+ * Select all articles with property 'swrc:isbn'.
+*/
+PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
+PREFIX swrc: <http://swrc.ontoware.org/ontology#>
+PREFIX bench: <http://localhost/vocabulary/bench/>
+
+SELECT ?article
+WHERE {
+ ?article rdf:type bench:Article .
+ ?article ?property ?value
+ FILTER (?property=swrc:isbn)
+}
+
+
+/////////////////////////////////////////////////////////// (Q4)
+/*
+ * Select all distinct pairs of article author names for
+ * authors that have published in the same journal.
+*/
+PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
+PREFIX bench: <http://localhost/vocabulary/bench/>
+PREFIX dc: <http://purl.org/dc/elements/1.1/>
+PREFIX dcterms: <http://purl.org/dc/terms/>
+PREFIX foaf: <http://xmlns.com/foaf/0.1/>
+PREFIX swrc: <http://swrc.ontoware.org/ontology#>
+
+SELECT DISTINCT ?name1 ?name2
+WHERE {
+ ?article1 rdf:type bench:Article .
+ ?article2 rdf:type bench:Article .
+ ?article1 dc:creator ?author1 .
+ ?author1 foaf:name ?name1 .
+ ?article2 dc:creator ?author2 .
+ ?author2 foaf:name ?name2 .
+ ?article1 swrc:journal ?journal .
+ ?article2 swrc:journal ?journal
+ FILTER (?name1<?name2)
+}
+
+
+/////////////////////////////////////////////////////////// (Q5a)
+/*
+ * Return the names of all persons that occur as author
+ * of at least one inproceeding and at least one article.
+*/
+PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
+PREFIX foaf: <http://xmlns.com/foaf/0.1/>
+PREFIX bench: <http://localhost/vocabulary/bench/>
+PREFIX dc: <http://purl.org/dc/elements/1.1/>
+
+SELECT DISTINCT ?person ?name
+WHERE {
+ ?article rdf:type bench:Article .
+ ?article dc:creator ?person .
+ ?inproc rdf:type bench:Inproceedings .
+ ?inproc dc:creator ?person2 .
+ ?person foaf:name ?name .
+ ?person2 foaf:name ?name2
+ FILTER (?name=?name2)
+}
+
+
+/////////////////////////////////////////////////////////// (Q5b)
+/*
+ * Return the names of all persons that occur as author
+ * of at least one inproceeding and at least one article
+ * (same as (Q5a)).
+*/
+PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
+PREFIX foaf: <http://xmlns.com/foaf/0.1/>
+PREFIX bench: <http://localhost/vocabulary/bench/>
+PREFIX dc: <http://purl.org/dc/elements/1.1/>
+
+SELECT DISTINCT ?person ?name
+WHERE {
+ ?article rdf:type bench:Article .
+ ?article dc:creator ?person .
+ ?inproc rdf:type bench:Inproceedings .
+ ?inproc dc:creator ?person .
+ ?person foaf:name ?name
+}
+
+
+/////////////////////////////////////////////////////////// (Q6)
+/*
+ * Return, for each year, the set of all publications authored
+ * by persons that have not published in years before.
+*/
+PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
+PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
+PREFIX foaf: <http://xmlns.com/foaf/0.1/>
+PREFIX dc: <http://purl.org/dc/elements/1.1/>
+PREFIX dcterms: <http://purl.org/dc/terms/>
+
+SELECT ?yr ?name ?document
+WHERE {
+ ?class rdfs:subClassOf foaf:Document .
+ ?document rdf:type ?class .
+ ?document dcterms:issued ?yr .
+ ?document dc:creator ?author .
+ ?author foaf:name ?name
+ OPTIONAL {
+ ?class2 rdfs:subClassOf foaf:Document .
+ ?document2 rdf:type ?class2 .
+ ?document2 dcterms:issued ?yr2 .
+ ?document2 dc:creator ?author2
+ FILTER (?author=?author2 && ?yr2<?yr)
+ } FILTER (!bound(?author2))
+}
+
+
+/////////////////////////////////////////////////////////// (Q7)
+/*
+ * Return the titles of all papers that have been cited at least
+ * once, but not by any paper that has not been cited itself.
+*/
+PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
+PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
+PREFIX foaf: <http://xmlns.com/foaf/0.1/>
+PREFIX dc: <http://purl.org/dc/elements/1.1/>
+PREFIX dcterms: <http://purl.org/dc/terms/>
+
+SELECT DISTINCT ?title
+WHERE {
+ ?class rdfs:subClassOf foaf:Document .
+ ?doc rdf:type ?class .
+ ?doc dc:title ?title .
+ ?bag2 ?member2 ?doc .
+ ?doc2 dcterms:references ?bag2
+ OPTIONAL {
+ ?class3 rdfs:subClassOf foaf:Document .
+ ?doc3 rdf:type ?class3 .
+ ?doc3 dcterms:references ?bag3 .
+ ?bag3 ?member3 ?doc
+ OPTIONAL {
+ ?class4 rdfs:subClassOf foaf:Document .
+ ?doc4 rdf:type ?class4 .
+ ?doc4 dcterms:references ?bag4 .
+ ?bag4 ?member4 ?doc3
+ } FILTER (!bound(?doc4))
+ } FILTER (!bound(?doc3))
+}
+
+
+/////////////////////////////////////////////////////////// (Q8)
+/*
+ * Compute authors that have published with 'Paul Erdoes',
+ * or with an author that has published with 'Paul Erdoes'.
+*/
+PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
+PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
+PREFIX foaf: <http://xmlns.com/foaf/0.1/>
+PREFIX dc: <http://purl.org/dc/elements/1.1/>
+
+SELECT DISTINCT ?name
+WHERE {
+ ?erdoes rdf:type foaf:Person .
+ ?erdoes foaf:name "Paul Erdoes"^^xsd:string .
+ {
+ ?document dc:creator ?erdoes .
+ ?document dc:creator ?author .
+ ?document2 dc:creator ?author .
+ ?document2 dc:creator ?author2 .
+ ?author2 foaf:name ?name
+ FILTER (?author!=?erdoes &&
+ ?document2!=?document &&
+ ?author2!=?erdoes &&
+ ?author2!=?author)
+ } UNION {
+ ?document dc:creator ?erdoes.
+ ?document dc:creator ?author.
+ ?author foaf:name ?name
+ FILTER (?author!=?erdoes)
+ }
+}
+
+
+/////////////////////////////////////////////////////////// (Q9)
+/*
+ * Return incoming and outcoming properties of persons.
+*/
+PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
+PREFIX foaf: <http://xmlns.com/foaf/0.1/>
+
+SELECT DISTINCT ?predicate
+WHERE {
+ {
+ ?person rdf:type foaf:Person .
+ ?subject ?predicate ?person
+ } UNION {
+ ?person rdf:type foaf:Person .
+ ?person ?predicate ?object
+ }
+}
+
+
+/////////////////////////////////////////////////////////// (Q10)
+/*
+ * Return all subjects that stand in any relation to 'Paul
+ * Erdoes'. In our scenario, the query might also be formulated
+ * as "Return publications and venues in which 'Paul Erdoes'
+ * is involved either as author or as editor".
+*/
+PREFIX person: <http://localhost/persons/>
+
+SELECT ?subject ?predicate
+WHERE {
+ ?subject ?predicate person:Paul_Erdoes
+}
+
+
+/////////////////////////////////////////////////////////// (Q11)
+/*
+ * Return (up to) 10 electronic edition URLs starting from the
+ * 51th publication, in lexicographical order.
+*/
+PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
+
+SELECT ?ee
+WHERE {
+ ?publication rdfs:seeAlso ?ee
+}
+ORDER BY ?ee
+LIMIT 10
+OFFSET 50
Propchange: incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/Queries/sp2b_queries.txt
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/README.txt
URL: http://svn.apache.org/viewvc/incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/README.txt?rev=1180022&view=auto
==============================================================================
--- incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/README.txt (added)
+++ incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/README.txt Fri Oct 7 12:27:09 2011
@@ -0,0 +1,4 @@
+http://dbis.informatik.uni-freiburg.de/index.php?project=SP2B
+
+License in download is BSD-style.
+This includes the queries.
Propchange: incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/README.txt
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/manifest.ttl
URL: http://svn.apache.org/viewvc/incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/manifest.ttl?rev=1180022&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/jena/Experimental/JenaPerf/trunk/Benchmarks/SP2B/manifest.ttl
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Modified: incubator/jena/Experimental/JenaPerf/trunk/src/main/scala/org/apache/jena/perf/PerfMain.scala
URL: http://svn.apache.org/viewvc/incubator/jena/Experimental/JenaPerf/trunk/src/main/scala/org/apache/jena/perf/PerfMain.scala?rev=1180022&r1=1180021&r2=1180022&view=diff
==============================================================================
--- incubator/jena/Experimental/JenaPerf/trunk/src/main/scala/org/apache/jena/perf/PerfMain.scala (original)
+++ incubator/jena/Experimental/JenaPerf/trunk/src/main/scala/org/apache/jena/perf/PerfMain.scala Fri Oct 7 12:27:09 2011
@@ -12,8 +12,8 @@ object PerfMain {
var manifestFilename:String = "Benchmarks/LUBM/manifest.ttl"
if ( args.length == 1 )
manifestFilename = args(0)
- else if ( args.length > 1 )
- {
+ else if ( args.length > 1 )
+ {
Console.err.println("Usage: manifest")
sys.exit(1)
}