public interface RDFConsumer
Modifier and Type | Method and Description |
---|---|
void |
addPrefix(String abbreviation,
String value)
Add a prefix to the underlying ontology format, if prefixes are supported.
|
void |
endModel()
Called when model parsing is finished.
|
OWLOntologyLoaderConfiguration |
getConfiguration() |
void |
includeModel(String logicalURI,
String physicalURI)
Receives the notification that the model being parsed includes another model with supplied
URIs.
|
void |
logicalURI(IRI logicalURI)
Receives the logical URI of the model.
|
IRI |
remapIRI(IRI i)
for iris that need to be mapped to blank nodes, e.g., SWRL rules with an IRI - the IRI should
be dropped for such constructs.
|
String |
remapOnlyIfRemapped(String i)
for iris that have been remapped to blank nodes, e.g., SWRL rules: the triple subject
swrl:body object, for example, needs the subject to be remapped consistently.
|
void |
startModel(IRI physicalURI)
Called when model parsing is started.
|
void |
statementWithLiteralValue(IRI subject,
IRI predicate,
String object,
String language,
IRI datatype)
Called when a statement with literal value is added to the model.
|
void |
statementWithLiteralValue(String subject,
String predicate,
String object,
String language,
String datatype)
Called when a statement with literal value is added to the model.
|
void |
statementWithResourceValue(IRI subject,
IRI predicate,
IRI object)
Called when a statement with resource value is added to the model.
|
void |
statementWithResourceValue(String subject,
String predicate,
String object)
Called when a statement with resource value is added to the model.
|
void startModel(IRI physicalURI)
physicalURI
- physical URI of the modelvoid endModel()
void statementWithResourceValue(String subject, String predicate, String object)
subject
- URI of the subject resourcepredicate
- URI of the predicate resourceobject
- URI of the object resourcevoid statementWithResourceValue(IRI subject, IRI predicate, IRI object)
subject
- URI of the subject resourcepredicate
- URI of the predicate resourceobject
- URI of the object resourcevoid statementWithLiteralValue(String subject, String predicate, String object, @Nullable String language, @Nullable String datatype)
subject
- URI of the subject resourcepredicate
- URI of the predicate resourceobject
- literal object valuelanguage
- the languagedatatype
- the URI of the literal's datatype (may be null
)void statementWithLiteralValue(IRI subject, IRI predicate, String object, @Nullable String language, @Nullable IRI datatype)
subject
- URI of the subject resourcepredicate
- URI of the predicate resourceobject
- literal object valuelanguage
- the languagedatatype
- the URI of the literal's datatype (may be null
)void logicalURI(IRI logicalURI)
logicalURI
- logical URI of the modelvoid includeModel(@Nullable String logicalURI, @Nullable String physicalURI)
logicalURI
- logical URI of the modelphysicalURI
- physical URI of the modelIRI remapIRI(IRI i)
i
- iri to remap if not blankString remapOnlyIfRemapped(String i)
i
- iri to remap if not blankvoid addPrefix(String abbreviation, String value)
abbreviation
- short name for prefixvalue
- replacement for short versionOWLOntologyLoaderConfiguration getConfiguration()
Copyright © 2020 The University of Manchester. All rights reserved.