- 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 of Entity.
The following code snippet creates a new entity statement, with a location attribute
"London". The entity is given an identifier myId.
QualifiedName myId= ... ; // some qualified name
Entity myEntity=provFactory.newEntity(myId)
myEntity.getLocation().add(provFactory.newLocation("London"))
Relevant Factory Methods:
-
ProvFactory.newEntity(QualifiedName) -
ModelConstructor.newEntity(QualifiedName, java.util.Collection)
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:
-
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
getLocationMethods inherited from interface org.openprovenance.prov.model.Identifiable
getId, setIdMethods inherited from interface org.openprovenance.prov.model.StatementOrBundle
getKind