java.lang.Object
org.openprovenance.prov.model.ProvUtilities
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattributesWithNamespace(HasOther object, String namespace) voiddoAction(StatementOrBundle s, StatementAction action) doAction(StatementOrBundle s, StatementActionValue action) static StringvoidforAllStatement(List<Statement> records, StatementAction action) voidforAllStatementOrBundle(List<StatementOrBundle> records, StatementAction action) <T> List<T> getObject(Class<T> cl, List<StatementOrBundle> ll) <T> List<T> getObject2(Class<T> cl, List<Statement> ll) booleanIndicates whether object has no time field.static booleanhasType(QualifiedName type, Collection<Attribute> attributes) voidstatic DatetoDate(XMLGregorianCalendar calendar) static XMLGregorianCalendartoXMLGregorianCalendar(Date date) static StringvoidupdateNamespaces(Document document) After reading/constructing a document, this method should be called to ensure that Namespaces are properly chained.static StringvalueToNotationString(Object val, QualifiedName xsdType) static StringvalueToNotationString(Key key)
-
Field Details
-
internationalizedStringUri
- See Also:
-
-
Constructor Details
-
ProvUtilities
public ProvUtilities()
-
-
Method Details
-
getRelations
-
getEntity
-
getActivity
-
getAgent
-
getBundle
-
getRelations
-
getEntity
-
getActivity
-
getAgent
-
getNamedBundle
-
getStatement
-
getStatement
-
getObject
-
getObject2
-
getEffect
-
getCause
-
getOtherCauses
-
attributesWithNamespace
-
forAllStatementOrBundle
-
forAllStatement
-
doAction
-
doAction
-
unescape
-
valueToNotationString
-
escape
-
valueToNotationString
-
hasType
-
getter
-
setter
-
hasNoTime
Indicates whether object has no time field.- Parameters:
o- a statement- Returns:
- true if object has no time field
-
toXMLGregorianCalendar
-
toDate
-
updateNamespaces
-