Hello,
I have a question; I would appreciate if someone helps me. I’m using SDB and MySQL as tripe store in my application. With the following commands I try to format the database and load data into it. $ bin/sdbconfig --sdb=sdb.ttl --format $ bin/sdbload --sdb=sdb.ttl example.owl When I was trying to load an ontology file with OWL syntax I got error because of syntax. Here is one section (Axiom) of the file in OWL syntax: Declaration(Class(:LowProfitService)) SubClassOf(Annotation(<http://www.example.org/perm/visibleBy> "l5") :LowProfitService :ServiceWithComingPriceIncrease) Then I changed the syntax of same file to RDF/XML using Protégé. The output is like this: <owl:Class rdf:about="http://www.semanticweb.org/example.owl#LowProfitService"> <rdfs:subClassOf rdf:resource="http://www.semanticweb.org/example.owl#ServiceWithComingPriceIncrease"/> </owl:Class> <owl:Axiom> <perm:visibleBy>l5</perm:visibleBy> <owl:annotatedSource rdf:resource="http://www.semanticweb.org/example.owl#LowProfitService"/> <owl:annotatedTarget rdf:resource="http://www.semanticweb.org/example.owl#ServiceWithComingPriceIncrease"/> <owl:annotatedProperty rdf:resource="&rdfs;subClassOf"/> </owl:Axiom> This time loading of data into database was successful. Then I tried to fetch data from database using the following code: SDBConnection conn = newSDBConnection(jdbcConnection); Store store = StoreFactory.create(storeDesc, conn); Model model = SDBFactory.connectDefaultModel(store); OntModel ont = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM,model); StmtIterator sIter = ont.listStatements(); StmtIterator iter = model.listStatements(); while(iter.hasNext()) { ... } Here is what I can observe for the same section of same file: [http://www.semanticweb.org/example.owl#LowProfitService, http://www.w3.org/1999/02/22-rdf-syntax-ns#type, http://www.w3.org/2002/07/owl#Class] [http://www.semanticweb.org/example.owl#LowProfitService, http://www.w3.org/2000/01/rdf-schema#subClassOf, http://www.semanticweb.org/example.owl#ServiceWithComingPriceIncrease] [-5dace940:13cfc2fda51:-7fdc, http://www.w3.org/1999/02/22-rdf-syntax-ns#type, http://www.w3.org/2002/07/owl#Axiom] [-5dace940:13cfc2fda51:-7fdc, http://www.w3.org/2002/07/owl#annotatedTarget, http://www.semanticweb.org/example.owl#ServiceWithComingPriceIncrease] [-5dace940:13cfc2fda51:-7fdc, http://www.example.org/perm/visibleBy, "l5"] [-5dace940:13cfc2fda51:-7fdc, http://www.w3.org/2002/07/owl#annotatedSource, http://www.semanticweb.org/example.owl#LowProfitService] [-5dace940:13cfc2fda51:-7fdc, http://www.w3.org/2002/07/owl#annotatedProperty, http://www.w3.org/2000/01/rdf-schema#subClassOf] Here you can see what I got from database for the same Axiom in the file with OWL syntax. SDB API added some additional resources in order to load data into database. What can I do with this output? How can I run Reasoner on this output? How can I get rid of additional resources (In this example: -5dace940:13cfc2fda51:-7fdc)? Can anyone provide any better solution for loading data with OWL syntax to not have the output of database like this?
