Module prov.model

Interface Entity

All Superinterfaces:
Element, HasLabel, HasLocation, HasOther, HasType, HasValue, Identifiable, Statement, StatementOrBundle
All Known Implementing Classes:
Entity

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:

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: