| We show how to answer the 14 Semantic Web test questions in the paper: | | A Comparison of RDF Query Languages | by Peter Haase, Jeen Broekstra, Andreas Eberhart, and Raphael Volz | | http://www.aifb.uni-karlsruhe.de/WBS/pha/rdf-query | | version 20040506 Please send comments to ibl@snet.net some-paper is related by fact#:title to some-title that-paper is related by fact#:author to some-description that-description is related by some-rdf-node to some-home-page that-home-page is related by fact#:name to some-name --------------------------------------------------------------- 1. that-name is an author of the publication that-title some-name is an author , with email some-email , of some-title ----------------------------------------------------------------- 2. that-name is an author , with email that-email , of that-title some-home-page is related by fact#:email to some-email --------------------------------------------------------------------------- there is a known email address for the person with home page that-home-page some-paper is related by fact#:title to some-title that-paper is related by fact#:author to some-description that-description is related by some-rdf-node to some-home-page that-home-page is related by fact#:name to some-name that-home-page is related by fact#:email to some-email -------------------------------------------------------------- that-name is an author , with email that-email , of that-title some-paper is related by fact#:title to some-title that-paper is related by fact#:author to some-description that-description is related by some-rdf-node to some-home-page that-home-page is related by fact#:name to some-name not : there is a known email address for the person with home page that-home-page --------------------------------------------------------------------------------- that-name is an author , with email (unknown) , of that-title some-namespace is related by rdfs#:label to some-item ----------------------------------------------------------------------------------- 3. that-item is in the list consisting of all topics and all titles of publications some-paper is related by fact#:title to some-item ----------------------------------------------------------------------------------- 3. that-item is in the list consisting of all topics and all titles of publications some-namespace is related by rdfs#:label to some-item not : that-item is a title of a publication ---------------------------------------------------------------------------------------- 4. that-item is in the list consisting of all topics that are not titles of publications some-paper is related by fact#:title to some-item ------------------------------------------------- that-item is a title of a publication some-paper is related by fact#:title to some-title that-paper is related by fact#:author to some-description that-description is related by some-rdf-node to some-home-page that-home-page is related by fact#:name to some-name --------------------------------------------------------------- that-name is an author of that-title some-home-page is related by fact#:name to some-name some-paper is related by fact#:title to some-title not : that-name is an author of that-title ----------------------------------------------------------------------------- the person that-name is missing from the list of authors of at least one paper some-home-page is related by fact#:name to some-name not : the person that-name is missing from the list of authors of at least one paper ------------------------------------------------------------------------------------ 5. the person that-name is an author of all publications some-paper is related by fact#:title to some-title count some-name : some-name is an author of that-title = some-number -------------------------------------------------------------------- 6. the publication that-title has that-number author(s) the topic Information Systems is a super topic of some-topic -------------------------------------------------------------- 7. that-topic is a sub topic of Information Systems some-namespace1 is related by daml#:SubTopic to some-namespace2 that-namespace1 is related by rdfs#:label to some-topic1 that-namespace2 is related by rdfs#:label to some-topic2 --------------------------------------------------------------- the topic that-topic1 is a super topic of that-topic2 the topic some-topic1 is a super topic of some-topic2 the topic that-topic2 is a super topic of some-topic3 ----------------------------------------------------- the topic that-topic1 is a super topic of that-topic3 some-paper is related by http://purl.org/dc/elements/1.1/:creator to some-name using reification that-paper is related by fact#:title to some-title ------------------------------------------------------------------------------------------------ 8. that-name is the person who has classified the paper that-title reified_triple is related by rdf:subject to some-paper reified_triple is related by http://purl.org/dc/elements/1.1/:creator to some-namespace that-namespace is related by fact#:name to some-name ------------------------------------------------------------------------------------------------ that-paper is related by http://purl.org/dc/elements/1.1/:creator to that-name using reification some-paper is related by fact#:title to some-title that-paper is related by fact#:author to __Description1 __Description1 is related by rdf:_1 to some-uri that-uri is related by fact#:name to some-name --------------------------------------------------------------- 9. that-name is the first author of the publication that-title some-namespace is shorthand for some-uri http://www.aifb.uni-karlsruhe.de/ followed by some-WBS/namespace = that-uri WBS/ followed by some-namespace = some-WBS/namespace that-namespace is related by fact#:name to some-name -------------------------------------------------------------------------------- 10. resource that-name has a namespace starts with http://aifb.uni-karlsruhe.de/ | To answer question 11 properly, we appear to need more data in sample.rdf | at http://www.aifb.uni-karlsruhe.de/WBS/pha/rdf-query ACMdm is related by rdfs#:label to some-topic1 ACMdm is related by rdfs#:label to some-topic that-topic1 lexically precedes that-topic ------------------------------------------------------------------------------------------ 11. that-topic is the German label of the topic whose English label is Database Management some-topic1 is less than some-topic2 ------------------------------------------ that-topic1 lexically precedes that-topic2 some-paper is related by fact#:title to some-title that-paper is related by fact#:pages to some-number ----------------------------------------------------------------- 12. the publication that-title has that-number of pages (lexical) some-paper is related by fact#:title to some-title that-paper is related by fact#:pages to some-0number that-0number (lexical) converts to that-number (numeric) ----------------------------------------------------------------- 13. the publication that-title has that-number of pages (numeric) 0 followed by some-number = some-0number -------------------------------------------------------- that-0number (lexical) converts to that-number (numeric) some-number1 is a digit between 1 and 9 that-number1 followed by some-number2 = some-number ------------------------------------------------------- that-number (lexical) converts to that-number (numeric) some-number is a digit between 1 and 9 ------------------------------------------------------- that-number (lexical) converts to that-number (numeric) this-number is a digit between 1 and 9 ======================================= 1 2 3 4 5 6 7 8 9 some-Publication is related by rdf:type to rdfs#Class some-InProceedings is related by rdfs#:subClassOf to that-Publication some-Paper is related by rdf:type to some-fact#InProceedings fact# followed by that-InProceedings = that-fact#InProceedings that-Paper is related by fact#:title to some-title --------------------------------------------------------------------- 14. that-title is a member of the class Publication this-subject is related by this-predicate to this-object ===================================================================================================================== Publication rdf:type rdfs#Class InProceedings rdf:type rdfs#Class InProceedings rdfs#:subClassOf Publication Person rdf:type rdfs#Class Person rdfs#:subClassOf Human Human rdf:type rdfs#Class Human rdfs#:subClassOf Person Topic rdf:type rdfs#Class author rdf:type rdf#Property author rdfs#:domain Publication author rdfs#:range rdf#Seq title rdf:type rdf#Property title rdfs#:domain Publication title rdfs#:range xmls#STRING pages rdf:type rdf#Property pages rdfs#:domain Publication pages rdfs#:range xmls#INTEGER year rdf:type rdf#Property year rdfs#:domain Publication isAbout rdf:type rdf#Property isAbout rdfs#:range Topic name rdf:type rdf#Property name rdfs#:domain Person name rdfs#:range xmls#STRING email rdf:type rdf#Property email rdfs#:domain Person email rdfs#:range xmls#STRING rvo rdf:type fact#Person rvo rdf:type Human rvo fact#:name Raphael Volz pha rdf:type fact#Person pha fact#:name Peter Haase aeb rdf:type fact#Human aeb fact#:name Andreas Eberhart http://www.cs.vu.nl/~jbroeks/ fact#:name Jeen Broekstra http://www.cs.vu.nl/~jbroeks/ fact#:email jbroeks@cs.vu.nl Paper rdf:type fact#InProceedings Paper fact#:title An Overview of RDF Query Languages __Description1 rdf:type rdf#Seq __Description1 rdf:_1 http://www.cs.vu.nl/~jbroeks/ __Description1 rdf:_2 aeb __Description1 rdf:_3 pha __Description1 rdf:_4 rvo Paper fact#:author __Description1 Paper fact#:pages 08 Paper fact#:year 2004 Paper fact#:isAbout ACMql reified_triple rdf:type rdf:Statement reified_triple rdf:subject Paper reified_triple rdf:predicate fact#:isAbout reified_triple rdf:object ACMql reified_triple http://purl.org/dc/elements/1.1/:creator pha ACMis rdf:type daml#Topic ACMis rdfs#:label Information Systems ACMis rdfs#:label Informationsysteme ACMis daml#:SubTopic ACMdm ACMdm rdf:type daml#Topic ACMdm rdfs#:label Database Management ACMdm rdfs#:label Datenbankmanagement ACMdm daml#:SubTopic ACMlang ACMlang rdf:type daml#Topic ACMlang rdfs#:label Languages ACMlang rdfs#:label Sprachen ACMlang daml#:SubTopic ACMql ACMql rdf:type daml#Topic ACMql rdfs#:label Query Languages ACMql rdfs#:label Anfragesprachen this-namespace is shorthand for this-URI =================================================================================== rdf http://www.w3.org/1999/02/22-rdf-syntax-ns rdfs http://www.w3.org/2000/01/rdf-schema xmls http://www.w3.org/2001/XMLSchema sample http://www.aifb.uni-karlsruhe.de/WBS/pha/rdf-query/sample.rdf rvo http://www.aifb.uni-karlsruhe.de/WBS/rvo aeb http://www.aifb.uni-karlsruhe.de/WBS/aeb pha http://www.aifb.uni-karlsruhe.de/WBS/pha ACMql ACMTopic/Information_Systems/Database_Management/Languages/Query_Languages ACMlang ACMTopic/Information_Systems/Database_Management/Languages ACMdm ACMTopic/Information_Systems/Database_Management ACMis ACMTopic/Information_Systems daml http://daml.umbc.edu/ontologies/topic-ont