ghxiao / clipper Goto Github PK
View Code? Open in Web Editor NEWA Reasoner for Conjunctive Query Answering over Horn-SHIQ via Query Rewriting
License: Apache License 2.0
A Reasoner for Conjunctive Query Answering over Horn-SHIQ via Query Rewriting
License: Apache License 2.0
fix test05 and test06
Support Jena Query interface. We can also use the jena SPARQL Parser Directly
Instead of filtering predicates from answer set, DLV supports queries natively.
See http://www.dlvsystem.com/dlvsystem/html/DLV_User_Manual.html#AEN1065
line 2:0 no viable alternative at character '/'
Q(?0,?1,?2) <- GraduateStudent(?0), University(?1), Department(?2), memberOf(?0,?2), subOrganizationOf(?2,?1), undergraduateDegreeFrom(?0,?1)
//Q(?0) <- t(?0,?1), t(?1,?2), t(?2,?3)
*** Examining query 10 *** /Users/xiao/Dropbox/Projects/clipper.git/clipper-evaluation/./src/main/resources/ontologies/LUBM/univ-bench_TB-C_s/Query_10
/Users/xiao/Dropbox/Projects/clipper.git/clipper-evaluation/./src/main/resources/ontologies/LUBM/Queries/Query_10.txt
Examining ABoxes for inference pattern Q(X0X1)-AdministrativeStaff(X0)Course(X2)takesCourse(X0X1)takesCourse(X0X2)
Q(X0,X44) :- Student(X0), takesCourse(X0,X44).
Ontology(<http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl> [Axioms: 243] [Logical axioms: 93])
org.semanticweb.owlapi.model.UnknownOWLOntologyException: Unknown ontology: <http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl>
at uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.getDirectImports(OWLOntologyManagerImpl.java:289)
at uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.getImportsClosure(OWLOntologyManagerImpl.java:354)
at uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.getImportsClosure(OWLOntologyManagerImpl.java:337)
at uk.ac.manchester.cs.owl.owlapi.OWLOntologyImpl.getImportsClosure(OWLOntologyImpl.java:1037)
at org.semanticweb.owlapi.profiles.OWL2Profile.checkOntology(OWL2Profile.java:84)
at org.semanticweb.owlapi.profiles.OWL2DLProfile.checkOntology(OWL2DLProfile.java:103)
at org.semanticweb.clipper.hornshiq.profile.HornSHIQProfile.checkOntology(HornSHIQProfile.java:59)
at org.semanticweb.clipper.hornshiq.queryanswering.QAHornSHIQ.normalize(QAHornSHIQ.java:264)
at org.semanticweb.clipper.hornshiq.queryanswering.QAHornSHIQ.preprocessOntologies(QAHornSHIQ.java:921)
at org.semanticweb.clipper.hornshiq.queryanswering.QAHornSHIQ.generateDataLog(QAHornSHIQ.java:127)
at org.semanticweb.clipper.hornshiq.queryanswering.QAHornSHIQ.query(QAHornSHIQ.java:738)
at org.semanticweb.clipper.eval.ClipperSygeniaInterfaceImp.runLoadedQuery(ClipperSygeniaInterfaceImp.java:99)
at org.oxford.comlab.compass.CompletenessAnalyser.doCompletenessAnalysisExperimentAllMappings(CompletenessAnalyser.java:94)
at org.semanticweb.clipper.eval.ClipperCompletenessAnalyzer.runAllTests(ClipperCompletenessAnalyzer.java:126)
at org.semanticweb.clipper.eval.ClipperCompletenessAnalyzer.main(ClipperCompletenessAnalyzer.java:13)
Query 4
Examining ABoxes for inference pattern Q(X0X1X2X3X4)-College(X5)emailAddress(X0X2)headOf(X0X4)headOf(X0X5)name(X0X1)telephone(X0X3)
Q(X0,X1,X2,X3,X44) :- worksFor(X0,X44), emailAddress(X0,X2), name(X0,X1), Professor(X0), telephone(X0,X3).
Ontology(<http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl> [Axioms: 243] [Logical axioms: 93])
Ontology(<http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl_TB-C_s/Query_04/Q(X0X1X2X3X4)-College(X5)emailAddress(X0X2)headOf(X0X4)headOf(X0X5)name(X0X1)telephone(X0X3)/Pattern_a_0;a_1;a_2;a_3;a_4;_D_a_5;> [Axioms: 11] [Logical axioms: 6])
[ans("a0", "XX-XXX", "XX-XXX", "XX-XXX", "a4")]
[ans("a0", "XX-XXX", "XX-XXX", "XX-XXX", "a5")]
A STRANGE CASE HAPPENED ON Pattern_a_0;a_1;a_2;a_3;a_4;_D_a_5;.owl
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.