All Packages Class Hierarchy This Package Previous Next Index
Class org.ginf.helpers.SchemaModelImpl
java.lang.Object
|
+----org.ginf.helpers.SchemaModelImpl
- public class SchemaModelImpl
- extends Object
- implements SchemaModel
This class implements evaluation of RDF schema information.
This default implementation works only with
the default implementation of the registry: SchemaRegistryImpl
-
SchemaModelImpl(SchemaRegistryImpl, Model)
- Works only with SchemaRegistryImpl!
Peer model must be a flat model.
-
add(Resource, Resource, RDFnode)
- Adds a new triple to the message.
-
add(Resource, Resource, String)
- Adds a new triple to the message.
-
add(Triple)
-
-
contains(Triple)
- Whether contains given triple
-
create()
-
-
difference(Model)
- Set difference with another model
-
duplicate()
- Cloning
-
elements()
- Enumeration of triples.
-
find(Resource, Resource, RDFnode)
- Search for triples.
-
find1(Resource, Resource, RDFnode)
- Search for a single triple.
-
getURI()
-
-
remove(Triple)
- Removes the triple from the message.
-
setURI(String)
-
-
size()
- Number of triples.
-
union(Model)
- Set union with another model
-
validate()
- Validates a model.
SchemaModelImpl
public SchemaModelImpl(SchemaRegistryImpl registry,
Model peer)
- Works only with SchemaRegistryImpl!
Peer model must be a flat model.
elements
public Enumeration elements()
- Enumeration of triples.
size
public int size()
- Number of triples.
contains
public boolean contains(Triple t)
- Whether contains given triple
add
public void add(Resource subject,
Resource predicate,
String object)
- Adds a new triple to the message. Object is a String (literal).
add
public void add(Resource subject,
Resource predicate,
RDFnode object)
- Adds a new triple to the message. Object is an RDFnode.
add
public void add(Triple t)
remove
public void remove(Triple t)
- Removes the triple from the message.
duplicate
public Model duplicate()
- Cloning
create
public Model create()
union
public Model union(Model m)
- Set union with another model
difference
public Model difference(Model m)
- Set difference with another model
setURI
public void setURI(String uri)
getURI
public String getURI()
find
public Model find(Resource subject,
Resource predicate,
RDFnode object)
- Search for triples.
NULL input parameter match anything.
Returns a flat model as a result!
find1
public Triple find1(Resource subject,
Resource predicate,
RDFnode object)
- Search for a single triple.
NULL input parameter match anything.
validate
public void validate()
- Validates a model. In case of an invalid statement
checks whether schema was not loaded
All Packages Class Hierarchy This Package Previous Next Index