Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for JSON and YAML files, closes #20
- add dependency on jena-arq - used to convert JSON-LD to RDF - this will also be used for SPARQL - add dependency on snakeyaml - update IOHelper.loadOntology(File, boolean) to - detect and convert YAML to JSON - detect and convert JSON to RDF - add simple.json translation of simple.owl - add simple.yaml translation of simple.owl - update unit tests
- Loading branch information
1 parent
924a9dd
commit cc1666e
Showing
5 changed files
with
131 additions
and
6 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"@context": { | ||
"resources": "https://github.com/ontodev/robot/robot-core/src/test/resources/", | ||
"simple": "resources:simple.owl#", | ||
"label": "rdfs:label", | ||
"parent": { | ||
"@id": "rdfs:subClassOf", | ||
"@type": "@id" | ||
} | ||
}, | ||
|
||
"@graph": [ | ||
{ | ||
"@id": "resources:simple.owl", | ||
"@type": "owl:Ontology" | ||
}, | ||
{ | ||
"@id": "simple:test1", | ||
"@type": "owl:Class", | ||
"label": [ | ||
{"@value": "test one"}, | ||
{"@value": "Test 1"} | ||
] | ||
}, | ||
{ | ||
"@id": "simple:test2", | ||
"@type": "owl:Class", | ||
"parent": "simple:test1" | ||
} | ||
] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
"@context": | ||
resources: https://github.com/ontodev/robot/robot-core/src/test/resources/ | ||
simple: resources:simple.owl# | ||
label: rdfs:label | ||
parent: | ||
"@id": rdfs:subClassOf | ||
"@type": "@id" | ||
|
||
"@graph": | ||
- "@id": resources:simple.owl | ||
"@type": owl:Ontology | ||
- "@id": simple:test1 | ||
"@type": owl:Class | ||
label: | ||
- "@value": test one | ||
- "@value": Test 1 | ||
- "@id": simple:test2 | ||
"@type": owl:Class | ||
parent: simple:test1 |