Extending NoHR for OWL 2 QL
Nuno Costa Matthias Knorr Jo˜ ao Leite
Universidade Nova de Lisboa
Extending NoHR for OWL 2 QL Nuno Costa Matthias Knorr Jo ao Leite - - PowerPoint PPT Presentation
Extending NoHR for OWL 2 QL Nuno Costa Matthias Knorr Jo ao Leite Universidade Nova de Lisboa Motivation: OWA vs. CWA Open World Assumption (OWA) Model taxonomic knowledge Ontologies (in Description Logics (DL), such as EL , DL -
Universidade Nova de Lisboa
◮ Open World Assumption (OWA)
◮ Model taxonomic knowledge ◮ Ontologies (in Description Logics (DL), such as EL, DL-LiteR) ◮ Example: results of clinical tests
◮ Closed World Assumption (CWA)
◮ Model defaults and exceptions ◮ Non-monotonic rules well-suited ◮ Example: patient’s medication
◮ Open World Assumption (OWA)
◮ Model taxonomic knowledge ◮ Ontologies (in Description Logics (DL), such as EL, DL-LiteR) ◮ Example: results of clinical tests
◮ Closed World Assumption (CWA)
◮ Model defaults and exceptions ◮ Non-monotonic rules well-suited ◮ Example: patient’s medication
◮ Open World Assumption (OWA)
◮ Model taxonomic knowledge ◮ Ontologies (in Description Logics (DL), such as EL, DL-LiteR) ◮ Example: results of clinical tests
◮ Closed World Assumption (CWA)
◮ Model defaults and exceptions ◮ Non-monotonic rules well-suited ◮ Example: patient’s medication
◮ Expressive language, yet simple to use ◮ Full two-way interaction between ontologies and rules ◮ As little restrictions as possible
◮ Large amount of data (on the Web; in applications, e.g., patient
◮ Interactive response time on reasoning
◮ Avoid up-front computation of the entire model ◮ Restrict computation to the relevant part
◮ Expressive language, yet simple to use ◮ Full two-way interaction between ontologies and rules ◮ As little restrictions as possible
◮ Large amount of data (on the Web; in applications, e.g., patient
◮ Interactive response time on reasoning
◮ Avoid up-front computation of the entire model ◮ Restrict computation to the relevant part
◮ Expressive language, yet simple to use ◮ Full two-way interaction between ontologies and rules ◮ As little restrictions as possible
◮ Large amount of data (on the Web; in applications, e.g., patient
◮ Interactive response time on reasoning
◮ Avoid up-front computation of the entire model ◮ Restrict computation to the relevant part
XSB Java Virtual Machine Protégé NoHR Plugin GUI ELK Query Processor InterProlog NoHR Rules Tab OWL File NM Rules File XSB Knowledge Base Query Answering Tables Tracer/ Debugger NoHR Query Tab Translator Ontology NM Rules Protégé Ontology NM Rules Base
◮ Applications require DL language features (e.g., inverses)
◮ OWL QL based on DL-LiteR would serve
◮ Covers basic DL languages, the entity relationship model, and
◮ Query-answering by rewriting queries by means of the ontology s.t.
◮ Very low data complexity ◮ Tailored towards huge data sets
◮ Applications require DL language features (e.g., inverses)
◮ OWL QL based on DL-LiteR would serve
◮ Covers basic DL languages, the entity relationship model, and
◮ Query-answering by rewriting queries by means of the ontology s.t.
◮ Very low data complexity ◮ Tailored towards huge data sets
◮ Negation present in OWL QL requires classification of negated
◮ Currently no classifier for OWL QL including negated concepts ◮ Naive adaptation inefficient due to large number of created
◮ Direct translation (no prior classification) ◮ Ensure identical derivation of ground queries ◮ Implement and evaluate its performance
◮ Negation present in OWL QL requires classification of negated
◮ Currently no classifier for OWL QL including negated concepts ◮ Naive adaptation inefficient due to large number of created
◮ Direct translation (no prior classification) ◮ Ensure identical derivation of ground queries ◮ Implement and evaluate its performance
◮ GCIs B ⊑ C and RIs Q ⊑ R ◮ Standard DL semantics based on interpretations I = (∆I, ·I)
◮ GCIs B ⊑ C and RIs Q ⊑ R ◮ Standard DL semantics based on interpretations I = (∆I, ·I)
◮ HasArtist(x, y) ← Piece(x) would yield HasArtist(x, y) for any
◮ HasArtist(x, c) ← Piece(x) would yield HasArtist(x, c) for any
◮ Skolemization would cause difficulties for termination
◮ HasArtist(x, y) ← Piece(x) would yield HasArtist(x, y) for any
◮ HasArtist(x, c) ← Piece(x) would yield HasArtist(x, c) for any
◮ Skolemization would cause difficulties for termination
◮ DHasArtist(x) ← HasArtist(x, y) associating domains (and
◮ For inverses HasComposed− ⊑ HasArtist, translate to
◮ DHasArtist(x) ← HasArtist(x, y) associating domains (and
◮ For inverses HasComposed− ⊑ HasArtist, translate to
Artist HasComposed– HasComposed ¬HasArtist– ¬HasComposed ¬HasArtist HasArtist– HasArtist
¬∃HasComposed– ¬Piece
¬∃HasArtist– ¬∃HasComposed
Piece ¬Artist ¬HasComposed– ¬∃HasArtist
Artist HasComposed– HasComposed ¬HasArtist– ¬HasComposed ¬HasArtist HasArtist– HasArtist
¬∃HasComposed– ¬Piece
¬∃HasArtist– ¬∃HasComposed
Piece ¬Artist ¬HasComposed– ¬∃HasArtist
◮ Sound and complete translation w.r.t. answering (ground)
◮ Data complexity in P ◮ Extension of classification on graphs to negated concepts a
◮ Implementation as an alternative translator module in NoHR for
◮ Small TBox ◮ Data generator for creating instance data of large sizes ◮ 14 test queries
◮ TBox slightly simplified to match the OWL profile(s) ◮ Three queries omitted whose results are affected by the
100 200 300 400 1 5 10 15 20 1 5 10 15 20 Time (s) EL - LUBM QL - LUBM XSB Processing Ontology Processing Initialization
100 200 300 400 1 5 10 15 20 1 5 10 15 20 Time (s) EL - LUBM QL - LUBM XSB Processing Ontology Processing Initialization
0 ¡ 50 ¡ 100 ¡ 150 ¡ 200 ¡ 250 ¡ 1 ¡ 5 ¡ 10 ¡ 15 ¡ 20 ¡ Time ¡(s) ¡ LUBM ¡ EL:q5 ¡ EL:q9 ¡ EL:q14 ¡ QL:q5 ¡ QL:q9 ¡ QL:q14 ¡ ◮ Often interactive response time with slight advantage for EL (q5) ◮ Few take a considerable amount of time
◮ Some with slight advantage for OWL QL (q14) ◮ One with notable difference in favor of EL (q9)
0 ¡ 50 ¡ 100 ¡ 150 ¡ 200 ¡ 250 ¡ 1 ¡ 5 ¡ 10 ¡ 15 ¡ 20 ¡ Time ¡(s) ¡ LUBM ¡ EL:q5 ¡ EL:q9 ¡ EL:q14 ¡ QL:q5 ¡ QL:q9 ¡ QL:q14 ¡ ◮ Often interactive response time with slight advantage for EL (q5) ◮ Few take a considerable amount of time
◮ Some with slight advantage for OWL QL (q14) ◮ One with notable difference in favor of EL (q9)
0.5 1 1.5 2 2.5 1 2 3 4 5 6 7 8 9 10 Time (s) LIPID with 100 rules and 1k*facts Query 1 Query 2 Query 3 Query 4 Query 4' ◮ Preprocessing very fast and only linearly increasing ◮ Four atomic queries in different levels of the hierarchy with
◮ 4’ – query 4 without the other queries beforehand (tabling)
◮ NoHR extended to OWL 2 QL based on direct translation ◮ Theoretically sound and complete including novel extension of
◮ Evaluation results of implementation encouraging as all
◮ QL is even faster on pre-processing and only slightly slower on
◮ Further comparisons to alternative versions for QL based on,
◮ OWL RL ◮ Paraconsistent Semantics