Title: owlapi-jsonld 0.1.0
Type Software Stian Soiland-Reyes (2014): owlapi-jsonld 0.1.0. Zenodo. Software. https://zenodo.org/record/10561
Links
- Item record in Zenodo
- Digital object URL
Summary
Add JSON-LD parser and renderer (read and write) support for the OWL API.
Usage
If using Maven, edit pom.xml to include:
org.clojars.stain owlapi-jsonld 0.1.0 clojars Clojars repository https://clojars.org/repo
Reading an JSON-LD-based ontology:
OWLOntologyManager ontologyManager = OWLManager.createOWLOntologyManager(); JsonLdParserFactory.register(); // Really just needed once IRI vcardIri = IRI.create("http://www.w3.org/2006/vcard/ns.jsonld"); OWLOntology ontology = ontologyManager.loadOntology(vcardIri); ontologyManager.saveOntology(ontology, new TurtleOntologyFormat(), System.out);
Writing out an ontology as JSON-LD:
OWLOntologyManager ontologyManager = OWLManager.createOWLOntologyManager(); JsonLdStorer.register(ontologyManager); // Needed once per ontologyManager IRI oaIri = IRI.create("http://www.w3.org/ns/oa.rdf"); OWLOntology ontology = ontologyManager.loadOntology(oaIri); ontologyManager.saveOntology(ontology, new JsonLdOntologyFormat(), System.out);
For further details about the OWL API, see OWL API documentation
License
Copyright © 2014 Stian Soiland-Reyes, University of Manchester.
License under the alternative of LGPL or Apache license 2.0; the same as OWL API.
More information
- DOI: 10.5281/zenodo.10561
Dates
- Publication date: 2014
- Issued: June 18, 2014
Rights
- info:eu-repo/semantics/openAccess Open Access
Format
electronic resource
Relateditems
Description | Item type | Relationship | Uri |
---|---|---|---|
IsSupplementTo | https://github.com/stain/owlapi-jsonld/tree/0.1.0 | ||
IsPartOf | https://zenodo.org/communities/zenodo |