All Known Implementing Classes:
RdfFieldForSubGraph

public interface RdfField
An RdfField is a reference to a set of triples based on a source node and a PropertySchema..
Author:
raven
  • Method Summary

    Modifier and Type
    Method
    Description
    org.aksw.commons.collection.observable.ObservableCollection<org.apache.jena.graph.Node>
     
    org.aksw.commons.collection.observable.ObservableCollection<org.apache.jena.graph.Node>
     
    Returns the schema of the field.
    org.apache.jena.graph.Node
    A field is based on a specific node in the RDF graph.
    boolean
     
    boolean
    If false then the field only matches a specific set of triples based on a given graph.
    default boolean
    matchesTriple(org.apache.jena.graph.Triple t)
     
    void
    setDeleted(boolean onOrOff)
     
    void
    setIntensional(boolean onOrOff)
     
  • Method Details

    • getPropertySchema

      PropertySchema getPropertySchema()
      Returns the schema of the field. The schema allows testing for whether a specific triple matches it.
    • getSourceNode

      org.apache.jena.graph.Node getSourceNode()
      A field is based on a specific node in the RDF graph. Depending on the property schema the values are obtained from ingoing and/or outgoing triples (or quads).
      Returns:
    • isIntensional

      boolean isIntensional()
      If false then the field only matches a specific set of triples based on a given graph. If true then the field matches any triple that fits into the schema independent of any graph. Marking a field with intensional=true as deleted will delete triples by a pattern such as DELETE WHERE { :foo :bar ?x } whereas if intensional was false than deletion would explicitly enumerate triples - i.e. DELETE DATA { :foo :bar v1, v2, v3 }
      Returns:
    • setIntensional

      void setIntensional(boolean onOrOff)
    • setDeleted

      void setDeleted(boolean onOrOff)
    • isDeleted

      boolean isDeleted()
    • getAddedAsSet

      org.aksw.commons.collection.observable.ObservableCollection<org.apache.jena.graph.Node> getAddedAsSet()
    • getEffectiveAsSet

      org.aksw.commons.collection.observable.ObservableCollection<org.apache.jena.graph.Node> getEffectiveAsSet()
    • matchesTriple

      default boolean matchesTriple(org.apache.jena.graph.Triple t)