SlideShare una empresa de Scribd logo
1 de 33
Expressive Query Answering For  Semantic Wikis Jie Bao, Rensselaer Polytechnic Institute baojie@cs.rpi.edu, http://www.cs.rpi.edu/~baojie
Outline Background: Semantic MediaWiki General Design Issues: Semantics and Expressivity Formalizing SMW with Datalog Extending SMW Modeling and Query Languages Implementations and Experimental Results Jan 18, 2011 2
Semantic Wiki as a Data Store Jan 18, 2011 3
Semantic MediaWiki (SMW) 4 It is the most popular semantic wiki system extending MediaWiki Mediawiki: What you edit what you see Jan 18, 2011
Semantic MediaWiki 5 To author knowledge typed link (property) SMW: What you edit (Modeling Language) what you see Jan 18, 2011
Semantic MediaWiki 6 To retrieve knowledge SMW: What you edit (Querying Language) what you see Jan 18, 2011
Why SMW? Low-cost solution for light-weight semantic applications Integrated environment for modeling and querying Simple to setup, easy to use Can work with hundreds of other MW/SMW extensions Templating, Visualization, Editing, I/O, Workflow…  Access Control, Forms, Maps, SPARQL… Jan 18, 2011 7
Expressivity (SMW 1.5.4) SMW-ML (Modeling Language) category instantiation e.g., [[Category:C]] property instantiation e.g., [[P::v]] subclass, e.g., [[Category:C]] (on a category page) subproperty, e.g., [[Subpropetyof:Property:P]] (on a property page) SMW-QL (Query Language) conjunction: e.g., [[Category:C]][[P::v]] disjunction: e.g., [[Category:C]] or [[P::v]], [[A||B]] or [[P::v||w]] property chain: e.g., [[P.Q::v]] property wildcat: e.g., [[P::+]] subquery: e.g., [[P::<q>[[Category:C]]</q>]] inverse property e.g., [[-P::v]] value comparison, e.g. [[P::>3]][[P::<7]][[P::!5]] Jan 18, 2011 8
However, we often need more expressivity Modeling Domain and Range: “has author” is from “person” to “document” Inverse  property: “has author” <-> “author of” Transitive  property: “part of” … Query Negation: find cities that are not capitals Counting:  find professors who advise more than 5 students Jan 18, 2011 9
Extending SMW Goal:  offer additional expressivity without losing “wikiness” (i.e., collaborative, simple, easy to learn, informality-tolerate, and evolving-capable ) Jan 18, 2011 10
Design Issues: Semantics and Expressivity Jan 18, 2011 11
Design Issue 1: Open or Close world? OWL/DL -Like		     DB/Rule-Like					 Jan 18, 2011 12 or
Design Issue 2: Expressivity Supported A subset of OWL that  Can be implemented using rules Is syntactically simple for common wiki users Why not full OWL 2 RL or OWL 2 QL? Too complicated for most wiki users Jan 18, 2011 13
Design Issue 3: Implementation Reuse existing tools if we can Low learning curve: hide details from users; incremental changes from SMW Portability: allow users to choose different backend stores (MySQL, SQL Server, etc.) Fast enough for a typical semantic wiki (has < O(104) pages [1]) Jan 18, 2011 14 [1] http://semantic-mediawiki.org/wiki/Sites_using_Semantic_MediaWiki
Solution Formalizing SMW modeling and query languages using datalog Descriptive, closed-world semantics Well-understood complexity and many known optimizations Implementation:  leverage highly-optimized LP solvers for reasoning, e.g., DLV, Clasp, and Smodels Reuse SMW UI for rendering query results Jan 18, 2011 15
Expressivity Modeling Language: a subset of  OWL Prime (or RDFS++ named by others) rdfs:subClassOf, subPropertyOf, domain, range owl:TransitiveProperty, SymmetricProperty, FunctionalProperty, InverseFunctionalProperty, inverseOf owl:sameAs, equivalentClass, equivalentProperty Query Language: SMW-QL, plus Negation as failure Cardinality Jan 18, 2011 16
Modeling SMW with datalog Jan 18, 2011 17
Translation Rules for SMW-ML Subproperty Subclass Class instance Property instance Redirection P(x,y) :- Q(x,y) . C(x) :- D(x) . C(a) . P(a,b) . a=b. Jan 18, 2011 18
Translation Rules for SMW-QL {{#ask:   [[Category:City]]   [[capital of::+]]  }} result(x) :- City(x), capital_of(x, y) . Jan 18, 2011 19
Translation Rules for SMW-QL result(x) :- _tmp0(x). _tmp0(x) :- A(x), p3(x,x0), x0=category:B. _tmp0(x) :- p(x,x2), p1(x2,x3), p2(x3,x1), _tmp9(x1). _tmp9(x1) :- _tmp12(x1). _tmp12(x1) :- D(x1). _tmp12(x1) :- p1(x1,x4), x4=SomePage. _tmp9(x1) :- thing(x), x !=v. _tmp9(x1) :- E(x1). {{#ask:  [[Category:A]][[p3::category:B]] or      [[p.p1.p2:: <q>        [[Category:D]] or   [[p1::<q>[[SomePage]]</q>]]     </q> ||!v ||<q>[[Category:E]]</q>   ]] }} Conjunction Property chain Disjunction Inequality Subquery Jan 18, 2011 20
Extending SMW-ML and SMW-QL Jan 18, 2011 21
SMW-ML+ [[Domain::C]] [[Range::C]] [[Type::Transitive]] [[Type::Symmetric]] [[Type::Functional]] [[Type::InverseFunctional]] [[Inverse of::Q]] C(x) :- P(x,y) C(y) :- P(x,y) P(x,y) :- P(x,z), P(z,y) P(x,y) :- P(y,x) SameAs(x,y) :- P(z,x),P(z,y) SameAs(x,y) :- P(x,z),P(y,z) Q(x,y) :- P(y,x) Jan 18, 2011 22 On page “Property:P”
SMW-QL+ : Negations {{#askplus:   [[<>Category:C]]   [[Category:D]] }} {{#askplus:   [[Category:C]]   [[<>P::+]] }} result(x) :- D(x), not C(x) . result(x) :- C(x), #count{x: P(x,y)}<=0 . Jan 18, 2011 23
SMW-QL+: (Non)qualified Cardinality {{#askplus:   [[>=3#P::+]] }} {{#askplus:   [[>=3#P::   <q>[[Category:D]]</q>]] }} result(x) :- thing(x), 	#count{x: P(x,y)}>=3 . result(x) :- thing(x), 	#count{x: P(x,y),D(y)}>=3 . Jan 18, 2011 24 For safeness
Theoretical Complexity Jan 18, 2011 25 Recall that L  NL  P  NP
Implementation and Experimental Results Jan 18, 2011 26
Implementation Using DLV as the reasoner Other LP solvers may be used as well Two work modes       File-based: reasoning based on a static dump (snapshot) of wiki semantic data.       Database-based:  reasoning based on a shadow database via ODBC; Real-time changes of instance data will be updated. Optimization Caching Jan 18, 2011 27
Example: Jan 18, 2011 28 Inverse property Caching Transitive property
Scalability: Data Complexity Test machine: 2 * Xeon 5365 Quad 3.0GHz 1333MHz /16G / 2 * 1TB Dataset:  part of DBLP, 10,396 pages, 100,736 triples Jan 18, 2011 29 {{#askplus: [[Category:Person]] }} Near linear
Scalability: Query Complexity Jan 18, 2011 30 {{#askplus: [[Knows::<q>[[Knows::<q>[[Knows::<q>…</q>]]</q>]]</q>]] }} Near constant ,[object Object],[object Object],[object Object]
Conclusions and Future Work Formalizing SMW using datalog allows us to analyze the reasoning complexity of SMW extend SMW modeling and query languages for an expressive subset of OWL implement a SMW query engine based on DLV that is scalable for typical uses. Future Work Incremental reasoning Customized reasoning rules SPARQL <-> SMW-QL+ translations Jan 18, 2011 33
Expressive Query Answering For  Semantic Wikis
Expressive Query Answering For  Semantic Wikis

Más contenido relacionado

La actualidad más candente

Computing with Directed Labeled Graphs
Computing with Directed Labeled GraphsComputing with Directed Labeled Graphs
Computing with Directed Labeled Graphs
Marko Rodriguez
 
A Model of the Scholarly Community
A Model of the Scholarly CommunityA Model of the Scholarly Community
A Model of the Scholarly Community
Marko Rodriguez
 
Syntactic Mediation in Grid and Web Service Architectures
Syntactic Mediation in Grid and Web Service ArchitecturesSyntactic Mediation in Grid and Web Service Architectures
Syntactic Mediation in Grid and Web Service Architectures
Martin Szomszor
 
Linked Open Data to support content based Recommender Systems
Linked Open Data to support content based Recommender SystemsLinked Open Data to support content based Recommender Systems
Linked Open Data to support content based Recommender Systems
Vito Ostuni
 

La actualidad más candente (20)

Entity Retrieval (SIGIR 2013 tutorial)
Entity Retrieval (SIGIR 2013 tutorial)Entity Retrieval (SIGIR 2013 tutorial)
Entity Retrieval (SIGIR 2013 tutorial)
 
Entity Linking in Queries: Tasks and Evaluation
Entity Linking in Queries: Tasks and EvaluationEntity Linking in Queries: Tasks and Evaluation
Entity Linking in Queries: Tasks and Evaluation
 
Computing with Directed Labeled Graphs
Computing with Directed Labeled GraphsComputing with Directed Labeled Graphs
Computing with Directed Labeled Graphs
 
Incomplete Information in RDF
Incomplete Information in RDFIncomplete Information in RDF
Incomplete Information in RDF
 
Table Retrieval and Generation
Table Retrieval and GenerationTable Retrieval and Generation
Table Retrieval and Generation
 
Sigir 2011 proceedings
Sigir 2011 proceedingsSigir 2011 proceedings
Sigir 2011 proceedings
 
Entity Retrieval (WWW 2013 tutorial)
Entity Retrieval (WWW 2013 tutorial)Entity Retrieval (WWW 2013 tutorial)
Entity Retrieval (WWW 2013 tutorial)
 
SF Python Meetup: TextRank in Python
SF Python Meetup: TextRank in PythonSF Python Meetup: TextRank in Python
SF Python Meetup: TextRank in Python
 
Entity Retrieval (tutorial organized by Radialpoint in Montreal)
Entity Retrieval (tutorial organized by Radialpoint in Montreal)Entity Retrieval (tutorial organized by Radialpoint in Montreal)
Entity Retrieval (tutorial organized by Radialpoint in Montreal)
 
Advanced Functional Programming in Scala
Advanced Functional Programming in ScalaAdvanced Functional Programming in Scala
Advanced Functional Programming in Scala
 
Incremental Reasoning on Streams and Rich Background Knowledge
Incremental Reasoning on Streams andRich Background Knowledge Incremental Reasoning on Streams andRich Background Knowledge
Incremental Reasoning on Streams and Rich Background Knowledge
 
Mapping Hierarchical Sources into RDF using the RML Mapping Language
Mapping Hierarchical Sources into RDF using the RML Mapping LanguageMapping Hierarchical Sources into RDF using the RML Mapping Language
Mapping Hierarchical Sources into RDF using the RML Mapping Language
 
LSESU a Taste of R Language Workshop
LSESU a Taste of R Language WorkshopLSESU a Taste of R Language Workshop
LSESU a Taste of R Language Workshop
 
8th TUC Meeting - Peter Boncz (CWI). Query Language Task Force status
8th TUC Meeting - Peter Boncz (CWI). Query Language Task Force status8th TUC Meeting - Peter Boncz (CWI). Query Language Task Force status
8th TUC Meeting - Peter Boncz (CWI). Query Language Task Force status
 
A Model of the Scholarly Community
A Model of the Scholarly CommunityA Model of the Scholarly Community
A Model of the Scholarly Community
 
Automatic Metadata Generation using Associative Networks
Automatic Metadata Generation using Associative NetworksAutomatic Metadata Generation using Associative Networks
Automatic Metadata Generation using Associative Networks
 
Lecture20 xing
Lecture20 xingLecture20 xing
Lecture20 xing
 
Syntactic Mediation in Grid and Web Service Architectures
Syntactic Mediation in Grid and Web Service ArchitecturesSyntactic Mediation in Grid and Web Service Architectures
Syntactic Mediation in Grid and Web Service Architectures
 
Linked Open Data to support content based Recommender Systems
Linked Open Data to support content based Recommender SystemsLinked Open Data to support content based Recommender Systems
Linked Open Data to support content based Recommender Systems
 
R language
R languageR language
R language
 

Destacado

ISWC 2010 Metadata Work Summary
ISWC 2010 Metadata Work SummaryISWC 2010 Metadata Work Summary
ISWC 2010 Metadata Work Summary
Jie Bao
 
Towards a theory of semantic communication
Towards a theory of semantic communicationTowards a theory of semantic communication
Towards a theory of semantic communication
Jie Bao
 
Owl 2 quick reference card a4 size
Owl 2 quick reference card a4 sizeOwl 2 quick reference card a4 size
Owl 2 quick reference card a4 size
Jie Bao
 

Destacado (6)

ISWC 2010 Metadata Work Summary
ISWC 2010 Metadata Work SummaryISWC 2010 Metadata Work Summary
ISWC 2010 Metadata Work Summary
 
Intellectual Property Strategy - Drive Oregon Event - February 2014
Intellectual Property Strategy - Drive Oregon Event - February 2014Intellectual Property Strategy - Drive Oregon Event - February 2014
Intellectual Property Strategy - Drive Oregon Event - February 2014
 
XACML 3.0 (Partial) Concept Map
XACML 3.0 (Partial) Concept MapXACML 3.0 (Partial) Concept Map
XACML 3.0 (Partial) Concept Map
 
Towards a theory of semantic communication
Towards a theory of semantic communicationTowards a theory of semantic communication
Towards a theory of semantic communication
 
Owl 2 quick reference card a4 size
Owl 2 quick reference card a4 sizeOwl 2 quick reference card a4 size
Owl 2 quick reference card a4 size
 
The Focus is Safety with Toyota Material Handling Europe's Leadership, Produc...
The Focus is Safety with Toyota Material Handling Europe's Leadership, Produc...The Focus is Safety with Toyota Material Handling Europe's Leadership, Produc...
The Focus is Safety with Toyota Material Handling Europe's Leadership, Produc...
 

Similar a Expressive Query Answering For Semantic Wikis

From SMW to Rules
From SMW to RulesFrom SMW to Rules
From SMW to Rules
Jie Bao
 
Concept Modeling on Semantic Wiki
Concept Modeling on Semantic WikiConcept Modeling on Semantic Wiki
Concept Modeling on Semantic Wiki
Jie Bao
 
Lessons learned from Semantic Wiki
Lessons learned from Semantic WikiLessons learned from Semantic Wiki
Lessons learned from Semantic Wiki
Jie Bao
 
Creating Interactive Olap Applications With My Sql Enterprise And Mondrian Pr...
Creating Interactive Olap Applications With My Sql Enterprise And Mondrian Pr...Creating Interactive Olap Applications With My Sql Enterprise And Mondrian Pr...
Creating Interactive Olap Applications With My Sql Enterprise And Mondrian Pr...
Indus Khaitan
 
Semantic Wiki @ RPI, Apr 2009
Semantic Wiki @ RPI, Apr 2009Semantic Wiki @ RPI, Apr 2009
Semantic Wiki @ RPI, Apr 2009
Jie Bao
 
A Short Tutorial to Semantic Media Wiki (SMW)
A Short Tutorial to Semantic Media Wiki (SMW) A Short Tutorial to Semantic Media Wiki (SMW)
A Short Tutorial to Semantic Media Wiki (SMW)
Jie Bao
 

Similar a Expressive Query Answering For Semantic Wikis (20)

From SMW to Rules
From SMW to RulesFrom SMW to Rules
From SMW to Rules
 
Leveraging Model-Driven Technologies for JSON Artefacts: The Shipyard Case Study
Leveraging Model-Driven Technologies for JSON Artefacts: The Shipyard Case StudyLeveraging Model-Driven Technologies for JSON Artefacts: The Shipyard Case Study
Leveraging Model-Driven Technologies for JSON Artefacts: The Shipyard Case Study
 
Concept Modeling on Semantic Wiki
Concept Modeling on Semantic WikiConcept Modeling on Semantic Wiki
Concept Modeling on Semantic Wiki
 
Lessons learned from Semantic Wiki
Lessons learned from Semantic WikiLessons learned from Semantic Wiki
Lessons learned from Semantic Wiki
 
Transformers in 2021
Transformers in 2021Transformers in 2021
Transformers in 2021
 
Getty Vocabulary Program LOD: Ontologies and Semantic Representation
Getty Vocabulary Program LOD: Ontologies and Semantic RepresentationGetty Vocabulary Program LOD: Ontologies and Semantic Representation
Getty Vocabulary Program LOD: Ontologies and Semantic Representation
 
Comparison between rdbms and nosql
Comparison between rdbms and nosqlComparison between rdbms and nosql
Comparison between rdbms and nosql
 
Creating Interactive Olap Applications With My Sql Enterprise And Mondrian Pr...
Creating Interactive Olap Applications With My Sql Enterprise And Mondrian Pr...Creating Interactive Olap Applications With My Sql Enterprise And Mondrian Pr...
Creating Interactive Olap Applications With My Sql Enterprise And Mondrian Pr...
 
Datamining at SemWebPro 2012
Datamining at SemWebPro 2012Datamining at SemWebPro 2012
Datamining at SemWebPro 2012
 
Mathematical Semantic Markup in a Wiki: the Roles of Symbols and Notations
Mathematical Semantic Markup in a Wiki: the Roles of Symbols and NotationsMathematical Semantic Markup in a Wiki: the Roles of Symbols and Notations
Mathematical Semantic Markup in a Wiki: the Roles of Symbols and Notations
 
Msr2021 tutorial-di penta
Msr2021 tutorial-di pentaMsr2021 tutorial-di penta
Msr2021 tutorial-di penta
 
The SPARQL Anything project
The SPARQL Anything projectThe SPARQL Anything project
The SPARQL Anything project
 
Softshake 2013: Introduction to NoSQL with Couchbase
Softshake 2013: Introduction to NoSQL with CouchbaseSoftshake 2013: Introduction to NoSQL with Couchbase
Softshake 2013: Introduction to NoSQL with Couchbase
 
Semantic Wiki @ RPI, Apr 2009
Semantic Wiki @ RPI, Apr 2009Semantic Wiki @ RPI, Apr 2009
Semantic Wiki @ RPI, Apr 2009
 
A Short Tutorial to Semantic Media Wiki (SMW)
A Short Tutorial to Semantic Media Wiki (SMW) A Short Tutorial to Semantic Media Wiki (SMW)
A Short Tutorial to Semantic Media Wiki (SMW)
 
Source-to-source transformations: Supporting tools and infrastructure
Source-to-source transformations: Supporting tools and infrastructureSource-to-source transformations: Supporting tools and infrastructure
Source-to-source transformations: Supporting tools and infrastructure
 
Getty Vocabulary Program LOD: Ontologies and Semantic Representation
Getty Vocabulary Program LOD: Ontologies and Semantic RepresentationGetty Vocabulary Program LOD: Ontologies and Semantic Representation
Getty Vocabulary Program LOD: Ontologies and Semantic Representation
 
SDNs: hot topics, evolution & research opportunities
SDNs: hot topics, evolution & research opportunitiesSDNs: hot topics, evolution & research opportunities
SDNs: hot topics, evolution & research opportunities
 
Building and deploying LLM applications with Apache Airflow
Building and deploying LLM applications with Apache AirflowBuilding and deploying LLM applications with Apache Airflow
Building and deploying LLM applications with Apache Airflow
 
From Data to Knowledge thru Grailog Visualization
From Data to Knowledge thru Grailog VisualizationFrom Data to Knowledge thru Grailog Visualization
From Data to Knowledge thru Grailog Visualization
 

Más de Jie Bao

python-graph-lovestory
python-graph-lovestorypython-graph-lovestory
python-graph-lovestory
Jie Bao
 
unix toolbox 中文版
unix toolbox 中文版unix toolbox 中文版
unix toolbox 中文版
Jie Bao
 
unixtoolbox.book
unixtoolbox.bookunixtoolbox.book
unixtoolbox.book
Jie Bao
 
Towards social webtops using semantic wiki
Towards social webtops using semantic wikiTowards social webtops using semantic wiki
Towards social webtops using semantic wiki
Jie Bao
 
Semantic information theory in 20 minutes
Semantic information theory in 20 minutesSemantic information theory in 20 minutes
Semantic information theory in 20 minutes
Jie Bao
 
Startup best practices
Startup best practicesStartup best practices
Startup best practices
Jie Bao
 
24 Ways to Explore ISWC 2010 Data
24 Ways to Explore ISWC 2010 Data24 Ways to Explore ISWC 2010 Data
24 Ways to Explore ISWC 2010 Data
Jie Bao
 
Semantic Web: In Quest for the Next Generation Killer Apps
Semantic Web: In Quest for the Next Generation Killer AppsSemantic Web: In Quest for the Next Generation Killer Apps
Semantic Web: In Quest for the Next Generation Killer Apps
Jie Bao
 
Development of a Controlled Natural Language Interface for Semantic MediaWiki
Development of a Controlled Natural Language Interface for Semantic MediaWikiDevelopment of a Controlled Natural Language Interface for Semantic MediaWiki
Development of a Controlled Natural Language Interface for Semantic MediaWiki
Jie Bao
 
Digital image self-adaptive acquisition in medical x-ray imaging
Digital image self-adaptive acquisition in medical x-ray imagingDigital image self-adaptive acquisition in medical x-ray imaging
Digital image self-adaptive acquisition in medical x-ray imaging
Jie Bao
 
Privacy-Preserving Reasoning on the Semantic Web (Poster)
Privacy-Preserving Reasoning on the Semantic Web (Poster)Privacy-Preserving Reasoning on the Semantic Web (Poster)
Privacy-Preserving Reasoning on the Semantic Web (Poster)
Jie Bao
 
Privacy-Preserving Reasoning on the Semantic Web
Privacy-Preserving Reasoning on the Semantic WebPrivacy-Preserving Reasoning on the Semantic Web
Privacy-Preserving Reasoning on the Semantic Web
Jie Bao
 
Collaborative Construction of Large Biological Ontologies
Collaborative Construction of Large Biological OntologiesCollaborative Construction of Large Biological Ontologies
Collaborative Construction of Large Biological Ontologies
Jie Bao
 
Representing and Reasoning with Modular Ontologies (2007)
Representing and Reasoning with Modular Ontologies (2007)Representing and Reasoning with Modular Ontologies (2007)
Representing and Reasoning with Modular Ontologies (2007)
Jie Bao
 
Query Translation for Ontology-extended Data Sources
Query Translation for Ontology-extended Data SourcesQuery Translation for Ontology-extended Data Sources
Query Translation for Ontology-extended Data Sources
Jie Bao
 
A Semantic Importing Approach to Knowledge Reuse from Multiple Ontologies (Po...
A Semantic Importing Approach to Knowledge Reuse from Multiple Ontologies (Po...A Semantic Importing Approach to Knowledge Reuse from Multiple Ontologies (Po...
A Semantic Importing Approach to Knowledge Reuse from Multiple Ontologies (Po...
Jie Bao
 
A Semantic Importing Approach to Knowledge Reuse from Multiple Ontologies
A Semantic Importing Approach to Knowledge Reuse from Multiple OntologiesA Semantic Importing Approach to Knowledge Reuse from Multiple Ontologies
A Semantic Importing Approach to Knowledge Reuse from Multiple Ontologies
Jie Bao
 
Representing and Reasoning with Modular Ontologies
Representing and Reasoning with Modular OntologiesRepresenting and Reasoning with Modular Ontologies
Representing and Reasoning with Modular Ontologies
Jie Bao
 

Más de Jie Bao (20)

python-graph-lovestory
python-graph-lovestorypython-graph-lovestory
python-graph-lovestory
 
unix toolbox 中文版
unix toolbox 中文版unix toolbox 中文版
unix toolbox 中文版
 
unixtoolbox.book
unixtoolbox.bookunixtoolbox.book
unixtoolbox.book
 
Lean startup 精益创业 新创企业的成长思维
Lean startup 精益创业 新创企业的成长思维Lean startup 精益创业 新创企业的成长思维
Lean startup 精益创业 新创企业的成长思维
 
Towards social webtops using semantic wiki
Towards social webtops using semantic wikiTowards social webtops using semantic wiki
Towards social webtops using semantic wiki
 
Semantic information theory in 20 minutes
Semantic information theory in 20 minutesSemantic information theory in 20 minutes
Semantic information theory in 20 minutes
 
Startup best practices
Startup best practicesStartup best practices
Startup best practices
 
CV
CVCV
CV
 
24 Ways to Explore ISWC 2010 Data
24 Ways to Explore ISWC 2010 Data24 Ways to Explore ISWC 2010 Data
24 Ways to Explore ISWC 2010 Data
 
Semantic Web: In Quest for the Next Generation Killer Apps
Semantic Web: In Quest for the Next Generation Killer AppsSemantic Web: In Quest for the Next Generation Killer Apps
Semantic Web: In Quest for the Next Generation Killer Apps
 
Development of a Controlled Natural Language Interface for Semantic MediaWiki
Development of a Controlled Natural Language Interface for Semantic MediaWikiDevelopment of a Controlled Natural Language Interface for Semantic MediaWiki
Development of a Controlled Natural Language Interface for Semantic MediaWiki
 
Digital image self-adaptive acquisition in medical x-ray imaging
Digital image self-adaptive acquisition in medical x-ray imagingDigital image self-adaptive acquisition in medical x-ray imaging
Digital image self-adaptive acquisition in medical x-ray imaging
 
Privacy-Preserving Reasoning on the Semantic Web (Poster)
Privacy-Preserving Reasoning on the Semantic Web (Poster)Privacy-Preserving Reasoning on the Semantic Web (Poster)
Privacy-Preserving Reasoning on the Semantic Web (Poster)
 
Privacy-Preserving Reasoning on the Semantic Web
Privacy-Preserving Reasoning on the Semantic WebPrivacy-Preserving Reasoning on the Semantic Web
Privacy-Preserving Reasoning on the Semantic Web
 
Collaborative Construction of Large Biological Ontologies
Collaborative Construction of Large Biological OntologiesCollaborative Construction of Large Biological Ontologies
Collaborative Construction of Large Biological Ontologies
 
Representing and Reasoning with Modular Ontologies (2007)
Representing and Reasoning with Modular Ontologies (2007)Representing and Reasoning with Modular Ontologies (2007)
Representing and Reasoning with Modular Ontologies (2007)
 
Query Translation for Ontology-extended Data Sources
Query Translation for Ontology-extended Data SourcesQuery Translation for Ontology-extended Data Sources
Query Translation for Ontology-extended Data Sources
 
A Semantic Importing Approach to Knowledge Reuse from Multiple Ontologies (Po...
A Semantic Importing Approach to Knowledge Reuse from Multiple Ontologies (Po...A Semantic Importing Approach to Knowledge Reuse from Multiple Ontologies (Po...
A Semantic Importing Approach to Knowledge Reuse from Multiple Ontologies (Po...
 
A Semantic Importing Approach to Knowledge Reuse from Multiple Ontologies
A Semantic Importing Approach to Knowledge Reuse from Multiple OntologiesA Semantic Importing Approach to Knowledge Reuse from Multiple Ontologies
A Semantic Importing Approach to Knowledge Reuse from Multiple Ontologies
 
Representing and Reasoning with Modular Ontologies
Representing and Reasoning with Modular OntologiesRepresenting and Reasoning with Modular Ontologies
Representing and Reasoning with Modular Ontologies
 

Último

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Último (20)

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 

Expressive Query Answering For Semantic Wikis

  • 1. Expressive Query Answering For Semantic Wikis Jie Bao, Rensselaer Polytechnic Institute baojie@cs.rpi.edu, http://www.cs.rpi.edu/~baojie
  • 2. Outline Background: Semantic MediaWiki General Design Issues: Semantics and Expressivity Formalizing SMW with Datalog Extending SMW Modeling and Query Languages Implementations and Experimental Results Jan 18, 2011 2
  • 3. Semantic Wiki as a Data Store Jan 18, 2011 3
  • 4. Semantic MediaWiki (SMW) 4 It is the most popular semantic wiki system extending MediaWiki Mediawiki: What you edit what you see Jan 18, 2011
  • 5. Semantic MediaWiki 5 To author knowledge typed link (property) SMW: What you edit (Modeling Language) what you see Jan 18, 2011
  • 6. Semantic MediaWiki 6 To retrieve knowledge SMW: What you edit (Querying Language) what you see Jan 18, 2011
  • 7. Why SMW? Low-cost solution for light-weight semantic applications Integrated environment for modeling and querying Simple to setup, easy to use Can work with hundreds of other MW/SMW extensions Templating, Visualization, Editing, I/O, Workflow… Access Control, Forms, Maps, SPARQL… Jan 18, 2011 7
  • 8. Expressivity (SMW 1.5.4) SMW-ML (Modeling Language) category instantiation e.g., [[Category:C]] property instantiation e.g., [[P::v]] subclass, e.g., [[Category:C]] (on a category page) subproperty, e.g., [[Subpropetyof:Property:P]] (on a property page) SMW-QL (Query Language) conjunction: e.g., [[Category:C]][[P::v]] disjunction: e.g., [[Category:C]] or [[P::v]], [[A||B]] or [[P::v||w]] property chain: e.g., [[P.Q::v]] property wildcat: e.g., [[P::+]] subquery: e.g., [[P::<q>[[Category:C]]</q>]] inverse property e.g., [[-P::v]] value comparison, e.g. [[P::>3]][[P::<7]][[P::!5]] Jan 18, 2011 8
  • 9. However, we often need more expressivity Modeling Domain and Range: “has author” is from “person” to “document” Inverse property: “has author” <-> “author of” Transitive property: “part of” … Query Negation: find cities that are not capitals Counting: find professors who advise more than 5 students Jan 18, 2011 9
  • 10. Extending SMW Goal: offer additional expressivity without losing “wikiness” (i.e., collaborative, simple, easy to learn, informality-tolerate, and evolving-capable ) Jan 18, 2011 10
  • 11. Design Issues: Semantics and Expressivity Jan 18, 2011 11
  • 12. Design Issue 1: Open or Close world? OWL/DL -Like DB/Rule-Like Jan 18, 2011 12 or
  • 13. Design Issue 2: Expressivity Supported A subset of OWL that Can be implemented using rules Is syntactically simple for common wiki users Why not full OWL 2 RL or OWL 2 QL? Too complicated for most wiki users Jan 18, 2011 13
  • 14. Design Issue 3: Implementation Reuse existing tools if we can Low learning curve: hide details from users; incremental changes from SMW Portability: allow users to choose different backend stores (MySQL, SQL Server, etc.) Fast enough for a typical semantic wiki (has < O(104) pages [1]) Jan 18, 2011 14 [1] http://semantic-mediawiki.org/wiki/Sites_using_Semantic_MediaWiki
  • 15. Solution Formalizing SMW modeling and query languages using datalog Descriptive, closed-world semantics Well-understood complexity and many known optimizations Implementation: leverage highly-optimized LP solvers for reasoning, e.g., DLV, Clasp, and Smodels Reuse SMW UI for rendering query results Jan 18, 2011 15
  • 16. Expressivity Modeling Language: a subset of OWL Prime (or RDFS++ named by others) rdfs:subClassOf, subPropertyOf, domain, range owl:TransitiveProperty, SymmetricProperty, FunctionalProperty, InverseFunctionalProperty, inverseOf owl:sameAs, equivalentClass, equivalentProperty Query Language: SMW-QL, plus Negation as failure Cardinality Jan 18, 2011 16
  • 17. Modeling SMW with datalog Jan 18, 2011 17
  • 18. Translation Rules for SMW-ML Subproperty Subclass Class instance Property instance Redirection P(x,y) :- Q(x,y) . C(x) :- D(x) . C(a) . P(a,b) . a=b. Jan 18, 2011 18
  • 19. Translation Rules for SMW-QL {{#ask: [[Category:City]] [[capital of::+]] }} result(x) :- City(x), capital_of(x, y) . Jan 18, 2011 19
  • 20. Translation Rules for SMW-QL result(x) :- _tmp0(x). _tmp0(x) :- A(x), p3(x,x0), x0=category:B. _tmp0(x) :- p(x,x2), p1(x2,x3), p2(x3,x1), _tmp9(x1). _tmp9(x1) :- _tmp12(x1). _tmp12(x1) :- D(x1). _tmp12(x1) :- p1(x1,x4), x4=SomePage. _tmp9(x1) :- thing(x), x !=v. _tmp9(x1) :- E(x1). {{#ask: [[Category:A]][[p3::category:B]] or [[p.p1.p2:: <q> [[Category:D]] or [[p1::<q>[[SomePage]]</q>]] </q> ||!v ||<q>[[Category:E]]</q> ]] }} Conjunction Property chain Disjunction Inequality Subquery Jan 18, 2011 20
  • 21. Extending SMW-ML and SMW-QL Jan 18, 2011 21
  • 22. SMW-ML+ [[Domain::C]] [[Range::C]] [[Type::Transitive]] [[Type::Symmetric]] [[Type::Functional]] [[Type::InverseFunctional]] [[Inverse of::Q]] C(x) :- P(x,y) C(y) :- P(x,y) P(x,y) :- P(x,z), P(z,y) P(x,y) :- P(y,x) SameAs(x,y) :- P(z,x),P(z,y) SameAs(x,y) :- P(x,z),P(y,z) Q(x,y) :- P(y,x) Jan 18, 2011 22 On page “Property:P”
  • 23. SMW-QL+ : Negations {{#askplus: [[<>Category:C]] [[Category:D]] }} {{#askplus: [[Category:C]] [[<>P::+]] }} result(x) :- D(x), not C(x) . result(x) :- C(x), #count{x: P(x,y)}<=0 . Jan 18, 2011 23
  • 24. SMW-QL+: (Non)qualified Cardinality {{#askplus: [[>=3#P::+]] }} {{#askplus: [[>=3#P:: <q>[[Category:D]]</q>]] }} result(x) :- thing(x), #count{x: P(x,y)}>=3 . result(x) :- thing(x), #count{x: P(x,y),D(y)}>=3 . Jan 18, 2011 24 For safeness
  • 25. Theoretical Complexity Jan 18, 2011 25 Recall that L  NL  P  NP
  • 26. Implementation and Experimental Results Jan 18, 2011 26
  • 27. Implementation Using DLV as the reasoner Other LP solvers may be used as well Two work modes File-based: reasoning based on a static dump (snapshot) of wiki semantic data. Database-based:  reasoning based on a shadow database via ODBC; Real-time changes of instance data will be updated. Optimization Caching Jan 18, 2011 27
  • 28. Example: Jan 18, 2011 28 Inverse property Caching Transitive property
  • 29. Scalability: Data Complexity Test machine: 2 * Xeon 5365 Quad 3.0GHz 1333MHz /16G / 2 * 1TB Dataset: part of DBLP, 10,396 pages, 100,736 triples Jan 18, 2011 29 {{#askplus: [[Category:Person]] }} Near linear
  • 30.
  • 31. Conclusions and Future Work Formalizing SMW using datalog allows us to analyze the reasoning complexity of SMW extend SMW modeling and query languages for an expressive subset of OWL implement a SMW query engine based on DLV that is scalable for typical uses. Future Work Incremental reasoning Customized reasoning rules SPARQL <-> SMW-QL+ translations Jan 18, 2011 33