Package alps.java.api.parsing
Schnittstelle IPASSGraph
- Alle bekannten Implementierungsklassen:
PASSGraph
public interface IPASSGraph
This is an interface for a graph used by each model to back up data in form of triples.
The graph is used mainly for exporting, but could also be used for remote control of the model.
It is always kept up to date when something inside the model changes.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
addTriple
(org.apache.jena.graph.Triple t) Adds a triple to the triple store this graph containsvoid
changeBaseURI
(String newUri) boolean
containsNonBaseUri
(String input) org.apache.jena.rdf.model.Literal
createLiteralNode
(String literal) org.apache.jena.rdf.model.Literal
createLiteralNode
(String literal, String langspec) org.apache.jena.rdf.model.Literal
createLiteralNode
(String literal, URI datadef) org.apache.jena.graph.Node
Creates a new Uri node inside the graphorg.apache.jena.graph.Node
createUriNode
(String name) Creates a new Uri node from a string name This name should not be an uri/url (start with http: ...)org.apache.jena.graph.Node
createUriNode
(URI uri) Creates a new Uri node from an Urivoid
Exports the current graph as owl to the specified filename.void
modelComponentIDChanged
(String oldID, String newID) Should be called when a modelComponentID is changed.void
register
(IGraphCallback element) Registers a component to the graph.void
removeTriple
(org.apache.jena.graph.Triple t) Removes a triple from the triple store this graph containsvoid
unregister
(IGraphCallback element) Deregisteres a component previously registered viaregister(IGraphCallback)
-
Methodendetails
-
getBaseURI
String getBaseURI() -
containsNonBaseUri
-
addTriple
void addTriple(org.apache.jena.graph.Triple t) Adds a triple to the triple store this graph contains- Parameter:
t
- the triple
-
removeTriple
void removeTriple(org.apache.jena.graph.Triple t) Removes a triple from the triple store this graph contains- Parameter:
t
- the triple
-
createUriNode
org.apache.jena.graph.Node createUriNode()Creates a new Uri node inside the graph- Gibt zurück:
- The new Uri node
-
createUriNode
Creates a new Uri node from an Uri- Parameter:
uri
- The correctly formatted uri- Gibt zurück:
- The new Uri node
-
createUriNode
Creates a new Uri node from a string name This name should not be an uri/url (start with http: ...) For this usecreateUriNode(String)
.- Parameter:
name
- The name- Gibt zurück:
- The new Uri node
-
createLiteralNode
-
createLiteralNode
-
createLiteralNode
-
register
Registers a component to the graph. When a triple is changed, the affected component will be notified and can react to the change- Parameter:
element
- the element that is registered
-
unregister
Deregisteres a component previously registered viaregister(IGraphCallback)
- Parameter:
element
- the element that is de-registered
-
modelComponentIDChanged
Should be called when a modelComponentID is changed. The model component ids are like primary keys in a database, and many triples must be updated as result. Also, the other components inside the model will be notified about the change when they are registered.- Parameter:
oldID
- the old idnewID
- the new id
-
exportTo
Exports the current graph as owl to the specified filename.- Parameter:
filepath
-
-
changeBaseURI
-