240 likes | 400 Views
A Visual Approach to Semantic Query Design Using a Web-Based Graphical Query Designer. Paul R. Smart, Alistair Russell, Dave Braines , Yannis Kalfoglou , , Jie Bao and Nigel R. Shadbolt Presented by Kristine Monteith CS 652 – Information Extraction and Integration 5/21/09. Overview.
E N D
A Visual Approach to Semantic Query Design Using a Web-Based Graphical Query Designer Paul R. Smart, Alistair Russell, Dave Braines, YannisKalfoglou, , JieBaoand Nigel R. Shadbolt Presented by Kristine Monteith CS 652 – Information Extraction and Integration 5/21/09
Overview • Semantic Query Languages such as SPARQL are important tools for Information Retrieval • This paper presents a tool to aid in the process of query formation • Visual Query Systems • Syntactically valid queries • Avoid lexical and syntactic errors • Possibility of improved efficiency, understanding, and reduced training requirements
vSPARQL Visual Query Language • Set of graphic notations that support the visual representation of SPARQL query components • Outline • Core SPARQL Features • Triple Patterns • Simple Select Query • Graph Patterns • Solution Sequence Ordering • SPARQL CONSTRUCT Queries • Other SPARQL Features
Simple Select Query PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX edto: <http://www.e-defence.org/ontologies/terrorism.owl#> SELECT ?activity ?date WHERE { ?activity rdf:typeedto:Activity. ?activity edto:hasDate ?date }
Graph Patterns • Each variable has local scope with respect to the graph pattern in which it is contained PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX edto: <http://www.e-defence.org/ontologies/terrorism.owl#> SELECT ?activity WHERE { {?activity rdf:typeedto:MilitaryActivity}. {?activity rdf:ytpeedto:BiologicalActivity} }
Other Graph Patterns • Optional graph patterns • Union graph patterns • Allow users to specify alternatives for graph pattern matching
Solution Sequence Ordering • Specify the order in which query results are returned
Filtering PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX edto: <http://www.e-defence.org/ontologies/terrorism.owl#> SELECT ?activity ?activityDate WHERE { ?activity rdf:typeedto:Activity ?activity edto:hasDate ?activityDate FILTER (?activity>"2005-01-01T00:00:00Z"^^xsd:dateTime) }
SPARQL CONSTRUCT Queries • Define both a set of triples to match against the rdf graph and a template for rdf construction CONSTRUCT { _:a rdf:typeedto:TerroristAttack. _:a edto:hasICN ?aaip_ICN. ?x owl:sameAs _:a } WHERE { ?x rdf:typeaaip:TerroristIncident ?x aaip:hasICN ?aaip_ICN ?y rdf:typeedto:TerroristAttack ?y edto:hasICN ?edto_ICN }
Other SPARQL Features • Supported in the NITELIGHT tool • Not part of the vSPARQLspecification • ASK and DESCRIBE query forms • DISTINCT, LIMIT and OFFSET solution modifiers
Additional Application Areas • Rule Creation • Take advantage of multiple knowledge bases • Information Integration and Interoperability • Ontology alignments between ostensibly disparate ontologies
Rule Creation CONSTRUCT { ?z edto:hasSuspectedResponsibilityFor ?x } WHERE { ?x rdf:typeedto:TerroristAttack . ?x edto:isPerformedBy ?y . ?y edto:isMemberOf ?z . ?z rdf:typeedto:TerroristOrganization }
Information Integration and Interoperability PREFIX edto: <http://www.e-defence.org/ontologies/terrorism.owl#> PREFIX ito: <http://www.ito.org/terrorism.owl#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX owl: <http://www.w3.org/2002/07/owl#> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> CONSTRUCT { _:t rdf:typeedto:TerroristAttack . _:t edto:isSuicideAttackxsd:true . _:d ref:typeedto:ExplosiveDevice . _:t edto:usesedto _:d } WHERE { ?x rdf:typeito:TerroristIncident . ?x ito:hasTypeito:Bombing . ?x ito:involvesWeaponito:Explosive . ?x ito:hasVictim ?victim . ?victim ito:isFatalityxsd:true . ?victim rdf:typeito:Terrorist . ?x ito:perpetratedBy ?victim }
Strengths • Helped me understand SPARQL better • Enforces correct syntax • Seems like an attractive, easy-to-use program
Weakness • Requires the user to already be familiar with SPARQL • Tool not available online • Ontology not available online
Future Work • User evaluation study already planned