- All Superinterfaces:
Relation,Statement,StatementOrBundle,UnqualifiedRelation
- All Known Subinterfaces:
QualifiedAlternateOf
- All Known Implementing Classes:
AlternateOf,QualifiedAlternateOf
Interface for PROV Alternate association.
PROV-DM Definition for Alternate: Two alternate entities present aspects of the same thing. These aspects may be the same or different, and the alternate entities may or may not overlap in time.
Note that alternateOf is a necessarily very general relationship that, in reasoning, only states that the two alternate entities respectively fix some aspects of some common thing (possibly evolving over time), and so there is some relevant connection between the provenance of the alternates. In a specific application context, alternateOf, or a subtype of it, could allow more inferences.
Relevant Factory Methods:
Schema Definition:
The following schema fragment specifies the expected content contained within this class.
<complexType name="Alternate">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="alternate1" type="{http://www.w3.org/ns/prov#}IDRef"/>
<element name="alternate2" type="{http://www.w3.org/ns/prov#}IDRef"/>
</sequence>
</restriction>
</complexContent>
</complexType>
- Author:
- lavm
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.openprovenance.prov.model.StatementOrBundle
StatementOrBundle.Kind -
Method Summary
Modifier and TypeMethodDescriptionReturns the identifier for the first of the two entities.Returns the identifier for the second of the two entities.voidsetAlternate1(QualifiedName entity) Sets the identifier for the first of the two entities.voidsetAlternate2(QualifiedName entity) Sets the identifier for the second of the two entities.Methods inherited from interface org.openprovenance.prov.model.StatementOrBundle
getKind
-
Method Details
-
setAlternate1
Sets the identifier for the first of the two entities.- Parameters:
entity- aQualifiedNamefor second entity
-
setAlternate2
Sets the identifier for the second of the two entities.- Parameters:
entity- aQualifiedNamefor second entity
-
getAlternate1
QualifiedName getAlternate1()Returns the identifier for the first of the two entities.- Returns:
- a
QualifiedName
-
getAlternate2
QualifiedName getAlternate2()Returns the identifier for the second of the two entities.- Returns:
- a
QualifiedName
-