Package org.openprovenance.prov.model
Interface Entity
-
- All Superinterfaces:
Element,HasLabel,HasLocation,HasOther,HasType,HasValue,Identifiable,Statement,StatementOrBundle
- All Known Implementing Classes:
Entity
public interface Entity extends Identifiable, HasLabel, HasType, HasLocation, Statement, HasValue, HasOther, Element
Interface for the PROV Entity complex type.
PROV-DM Definition for Entity: An entity is a physical, digital, conceptual, or other kind of thing with some fixed aspects; entities may be real or imaginary.
The constructor method
ProvFactory.newEntity(QualifiedName)can be used to create an instance ofEntity. The following code snippet creates a new entity statement, with a location attribute "London". The entity is given an identifiermyId.QualifiedName myId= ... ; // some qualified name Entity myEntity=provFactory.newEntity(myId) myEntity.getLocation().add(provFactory.newLocation("London"))Relevant Factory Methods:
-
ProvFactory.newEntity(QualifiedName) -
ProvFactory.newEntity(QualifiedName, java.util.Collection) -
ObjectFactory.createEntity()
Schema Definition:
The following schema fragment specifies the expected content contained within this type.
<complexType name="Entity"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element ref="{http://www.w3.org/ns/prov#}label" maxOccurs="unbounded" minOccurs="0"/> <element ref="{http://www.w3.org/ns/prov#}location" maxOccurs="unbounded" minOccurs="0"/> <element ref="{http://www.w3.org/ns/prov#}type" maxOccurs="unbounded" minOccurs="0"/> <element ref="{http://www.w3.org/ns/prov#}value" minOccurs="0"/> <any processContents='skip' namespace='##other' maxOccurs="unbounded" minOccurs="0"/> </sequence> <attribute ref="{http://www.w3.org/ns/prov#}id"/> </restriction> </complexContent> </complexType>- See Also:
- PROV-DM Entity, PROV-O Entity, PROV-N Entity, PROV-XML Entity, PROV-JSON Entity
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.openprovenance.prov.model.StatementOrBundle
StatementOrBundle.Kind
-
-
Method Summary
-
Methods inherited from interface org.openprovenance.prov.model.HasLocation
getLocation
-
Methods inherited from interface org.openprovenance.prov.model.Identifiable
getId, setId
-
Methods inherited from interface org.openprovenance.prov.model.StatementOrBundle
getKind
-
-