public class OwlDeclarationBuffer extends Object
Constructor and Description |
---|
OwlDeclarationBuffer() |
Modifier and Type | Method and Description |
---|---|
void |
addClass(EntityIdValue entityIdValue)
Adds the given entity id value to the list of entities that should be
declared as OWL classes.
|
void |
addDatatypeProperty(org.eclipse.rdf4j.model.IRI propertyUri)
Adds the given property URI string to the list of property URIs that
should be declared as OWL datatype properties.
|
void |
addDatatypeProperty(PropertyIdValue propertyIdValue)
Adds the given property id value to the list of properties that should be
declared as OWL datatype properties.
|
void |
addObjectProperty(org.eclipse.rdf4j.model.IRI propertyUri)
Adds the given property URI string to the list of property URIs that
should be declared as OWL object properties.
|
void |
addObjectProperty(PropertyIdValue propertyIdValue)
Adds the given property id value to the list of properties that should be
declared as OWL object properties.
|
void |
writePropertyDeclarations(RdfWriter rdfWriter,
boolean fullStatements,
boolean simpleClaims)
Writes OWL declarations for properties that have been added recently.
|
public void addObjectProperty(PropertyIdValue propertyIdValue)
propertyIdValue
- the property to declarepublic void addObjectProperty(org.eclipse.rdf4j.model.IRI propertyUri)
propertyUri
- the property to declarepublic void addDatatypeProperty(PropertyIdValue propertyIdValue)
propertyIdValue
- the property to declarepublic void addDatatypeProperty(org.eclipse.rdf4j.model.IRI propertyUri)
propertyUri
- the property to declarepublic void addClass(EntityIdValue entityIdValue)
entityIdValue
- the property to declarepublic void writePropertyDeclarations(RdfWriter rdfWriter, boolean fullStatements, boolean simpleClaims) throws org.eclipse.rdf4j.rio.RDFHandlerException
rdfWriter
- the writer to write the declarations tofullStatements
- if true, then properties need to export full statements (with
qualifiers and references) will be declaredsimpleClaims
- if true, then properties to export simple claims (flat
triples) will be declaredorg.eclipse.rdf4j.rio.RDFHandlerException
- if there was a problem writing the declarationsCopyright © 2014–2024 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage