Class RdfFieldForSubGraph
java.lang.Object
org.aksw.jena_sparql_api.collection.observable.RdfFieldForSubGraph
- All Implemented Interfaces:
RdfField
An observable field over the subgraph formed by the triples of another
graph matching the given DirectedFilteredTriplePattern.
- Author:
- raven
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.aksw.jenax.arq.util.triple.TripleFilterprotected GraphChangeprotected booleanprotected boolean -
Constructor Summary
ConstructorsConstructorDescriptionRdfFieldForSubGraph(GraphChange graph, org.aksw.jenax.arq.util.triple.TripleFilter dftp) -
Method Summary
Modifier and TypeMethodDescriptionorg.aksw.commons.collection.observable.ObservableCollection<org.apache.jena.graph.Node>A mutable set view of explicitly added new values.org.aksw.commons.collection.observable.ObservableCollection<org.apache.jena.graph.Node>A view on the set of base values.Returns the schema of the field.org.apache.jena.graph.NodeA field is based on a specific node in the RDF graph.booleanbooleanIf false then the field only matches a specific set of triples based on a given graph.voidsetDeleted(boolean onOrOff) voidsetIntensional(boolean onOrOff) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.aksw.jena_sparql_api.collection.observable.RdfField
matchesTriple
-
Field Details
-
graph
-
dftp
protected org.aksw.jenax.arq.util.triple.TripleFilter dftp -
isDeleted
protected boolean isDeleted -
isIntensional
protected boolean isIntensional
-
-
Constructor Details
-
RdfFieldForSubGraph
-
-
Method Details
-
getPropertySchema
Description copied from interface:RdfFieldReturns the schema of the field. The schema allows testing for whether a specific triple matches it.- Specified by:
getPropertySchemain interfaceRdfField
-
getSourceNode
public org.apache.jena.graph.Node getSourceNode()Description copied from interface:RdfFieldA 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).- Specified by:
getSourceNodein interfaceRdfField- Returns:
-
setIntensional
public void setIntensional(boolean onOrOff) - Specified by:
setIntensionalin interfaceRdfField
-
isIntensional
public boolean isIntensional()Description copied from interface:RdfFieldIf 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 }- Specified by:
isIntensionalin interfaceRdfField- Returns:
-
setDeleted
public void setDeleted(boolean onOrOff) - Specified by:
setDeletedin interfaceRdfField
-
isDeleted
public boolean isDeleted() -
getEffectiveAsSet
public org.aksw.commons.collection.observable.ObservableCollection<org.apache.jena.graph.Node> getEffectiveAsSet()A view on the set of base values. Removing a triple marks the triple as deleted. If the field is set to deleted, then the returned set is empty- Specified by:
getEffectiveAsSetin interfaceRdfField
-
getAddedAsSet
public org.aksw.commons.collection.observable.ObservableCollection<org.apache.jena.graph.Node> getAddedAsSet()A mutable set view of explicitly added new values. The new triples are affected by node remapping but not by triple-remapping.- Specified by:
getAddedAsSetin interfaceRdfField
-