Created
March 13, 2017 07:11
-
-
Save maritaria/65f3146325811a6be1079208d05e4efb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void main(String[] args){ | |
Model schema = FileManager.get().loadModel("test_ontology.xml"); | |
Model data = FileManager.get().loadModel("royal92.owl"); | |
Reasoner reasoner = ReasonerRegistry.getRDFSReasoner(); | |
reasoner = reasoner.bindSchema(schema); | |
InfModel infmodel = ModelFactory.createInfModel(reasoner, data); | |
final String NS = "http://www.daml.org/2001/01/gedcom/royal92#"; | |
InfModel infModel = ModelFactory.createInfModel( reasoner, data ); | |
Resource beatrix = infmodel.getResource(NS+"@I661@"); | |
System.out.println("Beatrix has:"); | |
printStatements(infmodel, beatrix, null, null); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Beatrix has: | |
- (<http://www.daml.org/2001/01/gedcom/royal92#@I661@> <http://www.daml.org/2001/01/gedcom/gedcom#birth> <http://www.daml.org/2001/01/gedcom/royal92#event3803>) | |
- (<http://www.daml.org/2001/01/gedcom/royal92#@I661@> <http://www.daml.org/2001/01/gedcom/gedcom#spouseIn> <http://www.daml.org/2001/01/gedcom/royal92#@F443@>) | |
- (<http://www.daml.org/2001/01/gedcom/royal92#@I661@> <http://www.daml.org/2001/01/gedcom/gedcom#childIn> <http://www.daml.org/2001/01/gedcom/royal92#@F243@>) | |
- (<http://www.daml.org/2001/01/gedcom/royal92#@I661@> <http://www.daml.org/2001/01/gedcom/gedcom#title> 'Queen') | |
- (<http://www.daml.org/2001/01/gedcom/royal92#@I661@> <http://www.daml.org/2001/01/gedcom/gedcom#sex> 'F') | |
- (<http://www.daml.org/2001/01/gedcom/royal92#@I661@> <http://www.daml.org/2001/01/gedcom/gedcom#name> 'Beatrix of_Netherlands //') | |
- (<http://www.daml.org/2001/01/gedcom/royal92#@I661@> rdf:type <http://www.daml.org/2001/01/gedcom/gedcom#Individual>) | |
// We expected to also see our "test" class to appear here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version='1.0' encoding='ISO-8859-1'?> | |
<!DOCTYPE rdf:RDF [ | |
<!ENTITY rdf 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'> | |
<!ENTITY a 'http://www.daml.org/2001/01/gedcom/gedcom#'> | |
]> | |
<rdf:RDF | |
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | |
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" | |
xmlns:daml="http://www.daml.org/2001/03/daml+oil#" | |
xmlns:gedcom="http://www.daml.org/2001/01/gedcom/gedcom#" | |
xml:base="http://www.daml.org/2001/01/gedcom/royal92"> | |
<daml:Ontology rdf:about=""> | |
<daml:versionInfo>$Id: gedcom.daml,v 1.15 2002/09/06 15:38:18 mdean Exp $</daml:versionInfo> | |
<rdfs:comment>Genealogical Data Communication (GEDCOM) represented in DAML+OIL</rdfs:comment> | |
<daml:imports rdf:resource="http://www.daml.org/2001/03/daml+oil"/> | |
</daml:Ontology> | |
<rdfs:Class rdf:ID="test"> | |
<daml:equivalentTo rdf:resource="#a;Individual"/> | |
</rdfs:Class> | |
</rdf:RDF> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment