Interface AlternateOf
-
- All Superinterfaces:
Relation
,Statement
,StatementOrBundle
,UnqualifiedRelation
- All Known Subinterfaces:
QualifiedAlternateOf
- All Known Implementing Classes:
AlternateOf
,QualifiedAlternateOf
public interface AlternateOf extends Relation, UnqualifiedRelation
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:
- PROV-DM Alternate, PROV-O alternateOf, PROV-N Alternate, PROV-XML Alternate, PROV-JSON Alternate
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.openprovenance.prov.model.StatementOrBundle
StatementOrBundle.Kind
-
-
Method Summary
Modifier and Type Method Description QualifiedName
getAlternate1()
Returns the identifier for the first of the two entities.QualifiedName
getAlternate2()
Returns the identifier for the second of the two entities.void
setAlternate1(QualifiedName entity)
Sets the identifier for the first of the two entities.void
setAlternate2(QualifiedName entity)
Sets the identifier for the second of the two entities.-
Methods inherited from interface org.openprovenance.prov.model.StatementOrBundle
getKind
-
-
-
-
Method Detail
-
setAlternate1
void setAlternate1(QualifiedName entity)
Sets the identifier for the first of the two entities.- Parameters:
entity
- aQualifiedName
for second entity
-
setAlternate2
void setAlternate2(QualifiedName entity)
Sets the identifier for the second of the two entities.- Parameters:
entity
- aQualifiedName
for 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
-
-