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)
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>
StatementOrBundle.KindgetLocationgetId, setIdgetKindCopyright © 2015. All rights reserved.