public class OwlDeclarationBuffer
extends java.lang.Object
| Constructor | Description |
|---|---|
OwlDeclarationBuffer() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addClass(org.wikidata.wdtk.datamodel.interfaces.EntityIdValue entityIdValue) |
Adds the given entity id value to the list of entities that should be
declared as OWL classes.
|
void |
addDatatypeProperty(org.openrdf.model.URI propertyUri) |
Adds the given property URI string to the list of property URIs that
should be declared as OWL datatype properties.
|
void |
addDatatypeProperty(org.wikidata.wdtk.datamodel.interfaces.PropertyIdValue propertyIdValue) |
Adds the given property id value to the list of properties that should be
declared as OWL datatype properties.
|
void |
addObjectProperty(org.openrdf.model.URI propertyUri) |
Adds the given property URI string to the list of property URIs that
should be declared as OWL object properties.
|
void |
addObjectProperty(org.wikidata.wdtk.datamodel.interfaces.PropertyIdValue propertyIdValue) |
Adds the given property id value to the list of properties that should be
declared as OWL object properties.
|
void |
writeClassDeclarations(RdfWriter rdfWriter) |
Writes OWL declarations for classes that have been added recently.
|
void |
writePropertyDeclarations(RdfWriter rdfWriter,
boolean fullStatements,
boolean simpleClaims) |
Writes OWL declarations for properties that have been added recently.
|
public void addObjectProperty(org.wikidata.wdtk.datamodel.interfaces.PropertyIdValue propertyIdValue)
propertyIdValue - the property to declarepublic void addObjectProperty(org.openrdf.model.URI propertyUri)
propertyUri - the property to declarepublic void addDatatypeProperty(org.wikidata.wdtk.datamodel.interfaces.PropertyIdValue propertyIdValue)
propertyIdValue - the property to declarepublic void addDatatypeProperty(org.openrdf.model.URI propertyUri)
propertyUri - the property to declarepublic void addClass(org.wikidata.wdtk.datamodel.interfaces.EntityIdValue entityIdValue)
entityIdValue - the property to declarepublic void writePropertyDeclarations(RdfWriter rdfWriter, boolean fullStatements, boolean simpleClaims) throws org.openrdf.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.openrdf.rio.RDFHandlerException - if there was a problem writing the declarationspublic void writeClassDeclarations(RdfWriter rdfWriter) throws org.openrdf.rio.RDFHandlerException
rdfWriter - the writer to write the declarations toorg.openrdf.rio.RDFHandlerException - if there was a problem writing the declarationsCopyright © 2014–2017 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage