|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectowltools.ontologyrelease.OntologyVersionTools
public class OntologyVersionTools
Tools to handle the writing and reading of version information of owl ontology files.
Method Summary | |
---|---|
static String |
format(Date date)
Format a date into the canonical format of YYYY-MM-DD. |
static String |
getOboInOWLVersion(org.semanticweb.owlapi.model.OWLOntology ontology)
Retrieve the ontology version from the OboInOwl remark. |
static Date |
getOboInOWLVersionDate(org.semanticweb.owlapi.model.OWLOntology ontology)
Retrieve the ontology version from the OboInOwl remark and parse as Date . |
static String |
getOntologyVersion(org.semanticweb.owlapi.model.OWLOntology ontology)
Retrieve the ontology version as string. |
static Date |
getOntologyVersionDate(org.semanticweb.owlapi.model.OWLOntology ontology)
Retrieve the ontology version as Date . |
static org.semanticweb.owlapi.model.IRI |
getOntologyVersionIRI(org.semanticweb.owlapi.model.OWLOntology ontology)
Retrieve the ontology version as IRI. |
static boolean |
isOBOOntologyVersion(String version)
Check, whether the given version string is an OBO-specific IRI. |
static Date |
parseVersion(String version)
Try to parse the string as a Date using the both patterns
for version IRI and OboInOwl. |
static org.semanticweb.owlapi.model.AddAxiom |
setOboInOWLVersion(org.semanticweb.owlapi.model.OWLOntology ontology,
Date date)
Set the OboInOWL remark to the given date. |
static org.semanticweb.owlapi.model.AddAxiom |
setOboInOWLVersion(org.semanticweb.owlapi.model.OWLOntology ontology,
String version)
Set the OboInOWL remark to the given ontology version. |
static org.semanticweb.owlapi.model.SetOntologyID |
setOntologyVersion(org.semanticweb.owlapi.model.OWLOntology ontology,
Date date,
String ontologyId,
String filename)
Set the ontology version IRI in the OntologyID. |
static org.semanticweb.owlapi.model.SetOntologyID |
setOntologyVersion(org.semanticweb.owlapi.model.OWLOntology ontology,
org.semanticweb.owlapi.model.IRI iri)
Set the ontology version IRI in the OntologyID. |
static org.semanticweb.owlapi.model.SetOntologyID |
setOntologyVersion(org.semanticweb.owlapi.model.OWLOntology ontology,
String versionIRI)
Set the ontology version IRI in the OntologyID to the given string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Date getOntologyVersionDate(org.semanticweb.owlapi.model.OWLOntology ontology)
Date
. Expects that
the version IRI is in the OBO specific format.
ontology
-
public static String getOntologyVersion(org.semanticweb.owlapi.model.OWLOntology ontology)
ontology
-
public static org.semanticweb.owlapi.model.IRI getOntologyVersionIRI(org.semanticweb.owlapi.model.OWLOntology ontology)
ontology
-
public static org.semanticweb.owlapi.model.SetOntologyID setOntologyVersion(org.semanticweb.owlapi.model.OWLOntology ontology, String versionIRI)
ontology
- target ontologyversionIRI
- string which can be parsed in a legal IRI
public static org.semanticweb.owlapi.model.SetOntologyID setOntologyVersion(org.semanticweb.owlapi.model.OWLOntology ontology, Date date, String ontologyId, String filename)
ontology
- date
- ontologyId
- filename
-
public static org.semanticweb.owlapi.model.SetOntologyID setOntologyVersion(org.semanticweb.owlapi.model.OWLOntology ontology, org.semanticweb.owlapi.model.IRI iri)
ontology
- iri
-
public static String getOboInOWLVersion(org.semanticweb.owlapi.model.OWLOntology ontology)
ontology
-
public static Date getOboInOWLVersionDate(org.semanticweb.owlapi.model.OWLOntology ontology)
Date
.
ontology
-
public static org.semanticweb.owlapi.model.AddAxiom setOboInOWLVersion(org.semanticweb.owlapi.model.OWLOntology ontology, String version)
ontology
- version
-
public static org.semanticweb.owlapi.model.AddAxiom setOboInOWLVersion(org.semanticweb.owlapi.model.OWLOntology ontology, Date date)
ontology
- date
-
public static boolean isOBOOntologyVersion(String version)
version
-
public static Date parseVersion(String version)
Date
using the both patterns
for version IRI and OboInOwl.
version
-
public static String format(Date date)
date
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |