public class Examples
extends java.lang.Object
Constructor and Description |
---|
Examples() |
Modifier and Type | Method and Description |
---|---|
void |
owlPrimer()
The following example uses entities and axioms that are used in the OWL
Primer.
|
void |
shouldAccessEntities()
This example shows how to get access to objects that represent entities.
|
void |
shouldAddAxiom() |
void |
shouldAddClassAssertion() |
void |
shouldAddObjectPropertyAssertions()
This example shows how add an object property assertion (triple) of the
form prop(subject, object) for example hasPart(a, b)
|
void |
shouldBuildDataRanges()
This example shows how to create dataranges
|
void |
shouldCreateAndReadAnnotations()
This example shows how to create and read annotations.
|
void |
shouldCreateAndSaveOntology() |
void |
shouldCreateInferredAxioms()
This example shows how to generate an ontology containing some inferred
information.
|
void |
shouldCreateOntology()
These examples show how to create new ontologies
|
void |
shouldCreatePropertyAssertions()
This example shows how to specify various property assertions for
individuals.
|
void |
shouldCreateRestrictions()
An example which shows how to create restrictions and add them as
superclasses of a class (i.e.
|
void |
shouldDeleteIndividuals()
An example which shows how to "delete" entities, in this case
individuals, from and ontology.
|
void |
shouldInstantiateLiterals() |
void |
shouldLoad()
The examples here show how to load ontologies
|
void |
shouldLoadAndSave() |
void |
shouldLookAtRestrictions()
This example shows how to examine the restrictions on a class.
|
void |
shouldMergeOntologies()
This example shows how to merge to ontologies (by simply combining axioms
from one ontology into another ontology).
|
void |
shouldQueryWithReasoner() |
void |
shouldSaveOntologies()
This example shows how an ontology can be saved in various formats to
various locations and streams
|
void |
shouldUseDataranges()
This example shows how to work with dataranges.
|
void |
shouldUseIRIMappers()
This example shows how to use IRI mappers to redirect imports and
loading.
|
void |
shouldUseReasoner()
An example which shows how to interact with a reasoner.
|
void |
shouldWalkOntology() |
public void shouldLoad() throws org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyCreationException
public void shouldSaveOntologies() throws org.semanticweb.owlapi.model.OWLOntologyStorageException, org.semanticweb.owlapi.model.OWLOntologyCreationException, java.io.IOException
org.semanticweb.owlapi.model.OWLOntologyStorageException
org.semanticweb.owlapi.model.OWLOntologyCreationException
java.io.IOException
public void shouldAccessEntities() throws org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyCreationException
public void shouldBuildDataRanges() throws org.semanticweb.owlapi.model.OWLOntologyCreationException, org.semanticweb.owlapi.model.OWLOntologyStorageException
org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyStorageException
public void shouldUseDataranges() throws org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyCreationException
public void shouldInstantiateLiterals()
public void shouldLoadAndSave() throws org.semanticweb.owlapi.model.OWLOntologyCreationException, org.semanticweb.owlapi.model.OWLOntologyStorageException, java.io.IOException
org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyStorageException
java.io.IOException
public void shouldAddAxiom() throws org.semanticweb.owlapi.model.OWLOntologyCreationException, org.semanticweb.owlapi.model.OWLOntologyStorageException
org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyStorageException
public void shouldCreateOntology() throws org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyCreationException
public void shouldCreatePropertyAssertions() throws org.semanticweb.owlapi.model.OWLOntologyStorageException, org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyStorageException
org.semanticweb.owlapi.model.OWLOntologyCreationException
public void shouldAddClassAssertion() throws org.semanticweb.owlapi.model.OWLOntologyCreationException, org.semanticweb.owlapi.model.OWLOntologyStorageException
org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyStorageException
public void shouldCreateAndSaveOntology() throws org.semanticweb.owlapi.model.OWLOntologyCreationException, org.semanticweb.owlapi.model.OWLOntologyStorageException
org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyStorageException
public void shouldAddObjectPropertyAssertions() throws org.semanticweb.owlapi.model.OWLOntologyCreationException, org.semanticweb.owlapi.model.OWLOntologyStorageException
org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyStorageException
public void shouldDeleteIndividuals() throws org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyCreationException
public void shouldCreateRestrictions() throws org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyCreationException
public void shouldUseReasoner() throws org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyCreationException
public void shouldLookAtRestrictions() throws org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyCreationException
public void shouldCreateAndReadAnnotations() throws org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyCreationException
public void shouldCreateInferredAxioms() throws org.semanticweb.owlapi.model.OWLOntologyCreationException, org.semanticweb.owlapi.model.OWLOntologyStorageException
org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyStorageException
public void shouldMergeOntologies() throws org.semanticweb.owlapi.model.OWLOntologyCreationException, org.semanticweb.owlapi.model.OWLOntologyStorageException
org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyStorageException
public void shouldWalkOntology() throws org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyCreationException
public void shouldQueryWithReasoner() throws org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyCreationException
public void shouldUseIRIMappers() throws org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyCreationException
public void owlPrimer() throws org.semanticweb.owlapi.model.OWLOntologyCreationException, org.semanticweb.owlapi.model.OWLOntologyStorageException
org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyStorageException