org.semanticdesktop.aperture.rdf.util
Class InferenceUtil

java.lang.Object
  extended by org.semanticdesktop.aperture.rdf.util.InferenceUtil

public class InferenceUtil
extends Object

Utility class to infer additional statements in RDF containers.


Constructor Summary
InferenceUtil()
          Create an uninitialized version of the Inference Util
 
Method Summary
static InferenceUtil createForCoreOntologies()
          Create a new inference utility, loading the core ontologies (the ones from the vocabulary package)
 void extendContent(Model model)
          Look into the passed model and extend existing triples with inferred triples.
 void extendContent(RDFContainer container)
          Look into the passed rdfcontainer and extend existing triples with inferred triples.
 void readOntology(Model model)
          Read the subclass/supproperty rules from the passed ontology and remember them.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InferenceUtil

public InferenceUtil()
Create an uninitialized version of the Inference Util

Method Detail

readOntology

public void readOntology(Model model)
Read the subclass/supproperty rules from the passed ontology and remember them. No reference to the model will be kept. The passed model is assumed to be open.

Parameters:
model - the ontology to parse

extendContent

public void extendContent(RDFContainer container)
Look into the passed rdfcontainer and extend existing triples with inferred triples. For example, if information is written as "x - nmo:messageSubject - y", this method will add "x - nie:subject - y", because messageSubject is a sub-property of subject.

Parameters:
container - the container to extend

extendContent

public void extendContent(Model model)
Look into the passed model and extend existing triples with inferred triples. For example, if information is written as "x - nmo:messageSubject - y", this method will add "x - nie:subject - y", because messageSubject is a sub-property of subject.

Parameters:
model - the model to extend, data will be read and written to it

createForCoreOntologies

public static InferenceUtil createForCoreOntologies()
Create a new inference utility, loading the core ontologies (the ones from the vocabulary package)

Returns:
a newly created and loaded inference utility, that knows how to inference based on the subclass/subproperty relations defined in the vocabulary package


Copyright © 2010 Aperture Development Team. All Rights Reserved.