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.
  • Methodendetails

    • getBaseURI

      String getBaseURI()
    • containsNonBaseUri

      boolean containsNonBaseUri(String input)
    • 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

      org.apache.jena.graph.Node createUriNode(URI uri)
      Creates a new Uri node from an Uri
      Parameter:
      uri - The correctly formatted uri
      Gibt zurück:
      The new Uri node
    • createUriNode

      org.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: ...) For this use createUriNode(String).
      Parameter:
      name - The name
      Gibt zurück:
      The new Uri node
    • createLiteralNode

      org.apache.jena.rdf.model.Literal createLiteralNode(String literal)
    • createLiteralNode

      org.apache.jena.rdf.model.Literal createLiteralNode(String literal, URI datadef)
    • createLiteralNode

      org.apache.jena.rdf.model.Literal createLiteralNode(String literal, String langspec)
    • register

      void register(IGraphCallback element)
      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

      void unregister(IGraphCallback element)
      Deregisteres a component previously registered via register(IGraphCallback)
      Parameter:
      element - the element that is de-registered
    • modelComponentIDChanged

      void modelComponentIDChanged(String oldID, String newID)
      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 id
      newID - the new id
    • exportTo

      void exportTo(String filepath)
      Exports the current graph as owl to the specified filename.
      Parameter:
      filepath -
    • changeBaseURI

      void changeBaseURI(String newUri)