|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opentox.error.ErrorSource
org.opentox.ontology.rdf.RDFHandler
public class RDFHandler
A Handler for RDF resources. Classes that extend RDFHandler have methods that are used to parse and generate RDF documents.
Feature
,
Dataset
,
Model
Field Summary | |
---|---|
com.hp.hpl.jena.ontology.OntModel |
jenaModel
The Jena Ontological Model used to read/write/modify an RDF document. |
private static long |
serialVersionUID
|
Fields inherited from class org.opentox.error.ErrorSource |
---|
errorRep |
Constructor Summary | |
---|---|
RDFHandler()
Void constructor - to be handled by subclasses. |
|
RDFHandler(java.io.InputStream in)
Initialized the RDFParser with an InputStream that will be used for reading the data. |
Method Summary | |
---|---|
com.hp.hpl.jena.util.iterator.ExtendedIterator<? extends com.hp.hpl.jena.ontology.OntResource> |
getClassMemberIteratorFor(AbsOntClass.Class someClass)
Creates an ExtendedIterator over the set of all resources which correspond to a specific class. |
com.hp.hpl.jena.ontology.OntModel |
getJenaModel()
Returns the jena Model. |
Methods inherited from class org.opentox.error.ErrorSource |
---|
getErrorRep |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
public com.hp.hpl.jena.ontology.OntModel jenaModel
Constructor Detail |
---|
public RDFHandler()
public RDFHandler(java.io.InputStream in)
in
- Method Detail |
---|
public com.hp.hpl.jena.util.iterator.ExtendedIterator<? extends com.hp.hpl.jena.ontology.OntResource> getClassMemberIteratorFor(AbsOntClass.Class someClass)
Dataset data = new Dataset(new FileInputStream("/path/to/some/file.rdf")); ExtendedIterator<? extends OntResource> it = data.getIteratorFor(OT.Class.Feature); while (it.hasNext()){ System.out.println(it.next()); }
someClass
-
public com.hp.hpl.jena.ontology.OntModel getJenaModel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |