R - the resource reference.public class Origin<R> extends Object
IRI, which is interpreted as the physical location of the resource.
OWLOntologyID, which is interpreted as the public key of an ontology already stored by Stanbol.
UriRef, which is interpreted as the name of a graph to be retrieved from an underlying Clerezza
store (typically a TcProvider).
| Modifier | Constructor and Description |
|---|---|
protected |
Origin(R reference)
Creates a new instance of
Origin. |
| Modifier and Type | Method and Description |
|---|---|
static Origin<org.semanticweb.owlapi.model.IRI> |
create(org.semanticweb.owlapi.model.IRI physicalURL)
Creates a new Origin for a resource that can be retrieved by dereferencing the given IRI as an URL.
|
static Origin<org.semanticweb.owlapi.model.OWLOntologyID> |
create(org.semanticweb.owlapi.model.OWLOntologyID publicKey)
Creates a new Origin for a resource whose public key is known.
|
static Origin<org.apache.clerezza.rdf.core.UriRef> |
create(org.apache.clerezza.rdf.core.UriRef graphName)
Creates a new Origin for a resource that can be retrieved by querying a Clerezza store for a graph with
the given name.
|
boolean |
equals(Object arg0) |
R |
getReference()
Returns the actual reference object that was wrapped by this Origin.
|
String |
toString() |
protected Origin(R reference)
Origin.reference - the physical reference. Cannot be nullIllegalArgumentException - if a null value was supplied for reference.public static Origin<org.semanticweb.owlapi.model.IRI> create(org.semanticweb.owlapi.model.IRI physicalURL)
physicalURL - the physical location of the resourcepublic static Origin<org.semanticweb.owlapi.model.OWLOntologyID> create(org.semanticweb.owlapi.model.OWLOntologyID publicKey)
publicKey - the public keypublic static Origin<org.apache.clerezza.rdf.core.UriRef> create(org.apache.clerezza.rdf.core.UriRef graphName)
graphName - the graph namepublic R getReference()
Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.