ont
in the example). The following requested URI is used as example to illustrate the various operations:
http://mmisw.org/ont/mmi/someVocab.owl/someTermNote that the "extension" (
.owl
) can also be indicated in the term component, eg., http://mmisw.org/ont/mmi/someVocab/someTerm.owlThe two strings refer to the same ontology and term.
Note that the extension is NOT included in any of the report operations except {@link #getExtension()}.
As a concrete example with all the main operations:
MmiUri mmiUri = new MmiUri("http://mmisw.org/ont/mmi/someVocab/someTerm.owl"); assertEquals("http://mmisw.org/ont/mmi/someVocab", mmiUri.getOntologyUri()); assertEquals("http://mmisw.org/ont/mmi/someVocab/someTerm", mmiUri.getTermUri()); assertEquals("mmi", mmiUri.getAuthority()); assertEquals(null, mmiUri.getVersion()); assertEquals("someVocab", mmiUri.getTopic()); assertEquals("someTerm", mmiUri.getTerm()); assertEquals(".owl", mmiUri.getExtension()); assertEquals("http://mmisw.org/ont/", mmiUri.getUntilRoot());@author Carlos Rueda
|
|