Module prov.model

Interface WasInvalidatedBy

All Superinterfaces:
HasLabel, HasLocation, HasOther, HasRole, HasTime, HasType, Identifiable, Influence, QualifiedRelation, Relation, Statement, StatementOrBundle
All Known Implementing Classes:
WasInvalidatedBy

public interface WasInvalidatedBy extends Identifiable, HasLabel, HasTime, HasType, HasRole, HasLocation, HasOther, Influence

Interface for PROV Invalidation association.

PROV-DM Definition for Invalidation: Invalidation is the start of the destruction, cessation, or expiry of an existing entity by an activity. The entity is no longer available for use (or further invalidation) after invalidation. Any generation or usage of an entity precedes its invalidation.

The constructor method ProvFactory.newWasInvalidatedBy(QualifiedName, QualifiedName, QualifiedName) can be used to create an instance of WasInvalidatedBy. The following code snippet creates a new invalidation statement, with a role attribute, and current time. The instance of invalidation is given an identifier myId.

 QualifiedName myId= ... ;  // some qualified name
 QualifiedName entityId= ... ;    // some entity qualified name
 QualifiedName activityId= ... ;  // some activity qualified name
 WasInvalidatedBy myWasInvalidatedBy=provFactory.newWasInvalidatedBy(myId,entityId,activityId);
 myWasInvalidatedBy.getRole().add(provFactory.newRole("parameter"));
 myWasInvalidatedBy.setTime(provFactory.newTimeNow())
 

Relevant Factory Methods:

Schema Definition:

The following schema fragment specifies the expected content contained within this class.

 <complexType name="Invalidation">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="entity" type="{http://www.w3.org/ns/prov#}IDRef"/>
         <element name="activity" type="{http://www.w3.org/ns/prov#}IDRef" minOccurs="0"/>
         <element name="time" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
         <element ref="{http://www.w3.org/ns/prov#}label" 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#}location" maxOccurs="unbounded" minOccurs="0"/>
         <element ref="{http://www.w3.org/ns/prov#}role" maxOccurs="unbounded" minOccurs="0"/>
         <any namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
       <attribute ref="{http://www.w3.org/ns/prov#}id"/>
     </restriction>
   </complexContent>
 </complexType>
 

See Also: