org.wikidata.wdtk.datamodel.interfaces.EntityDocumentDumpProcessor, org.wikidata.wdtk.datamodel.interfaces.EntityDocumentProcessorpublic class RdfSerializer
extends java.lang.Object
implements org.wikidata.wdtk.datamodel.interfaces.EntityDocumentDumpProcessor
EntityDocumentDumpProcessor to provide a RDF
serializer to render RDF graphs of EntityDocument objects.| Modifier and Type | Field | Description |
|---|---|---|
static int |
TASK_ALIASES |
|
static int |
TASK_ALL_ENTITIES |
|
static int |
TASK_ALL_EXACT_DATA |
|
static int |
TASK_DATATYPES |
|
static int |
TASK_DESCRIPTIONS |
|
static int |
TASK_INSTANCE_OF |
|
static int |
TASK_ITEMS |
|
static int |
TASK_LABELS |
|
static int |
TASK_PROPERTIES |
|
static int |
TASK_PROPERTY_LINKS |
|
static int |
TASK_SIMPLE_STATEMENTS |
|
static int |
TASK_SITELINKS |
|
static int |
TASK_STATEMENTS |
|
static int |
TASK_SUBPROPERTIES |
|
static int |
TASK_TAXONOMY |
|
static int |
TASK_TERMS |
| Constructor | Description |
|---|---|
RdfSerializer(org.openrdf.rio.RDFFormat format,
java.io.OutputStream output,
org.wikidata.wdtk.datamodel.interfaces.Sites sites,
PropertyRegister propertyRegister) |
Creates a new RDF serializer for the specified format and output stream.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
int |
getTasks() |
Returns the tasks that should be performed during export.
|
long |
getTripleCount() |
Returns the number of triples that have been written so far.
|
void |
open() |
|
void |
processItemDocument(org.wikidata.wdtk.datamodel.interfaces.ItemDocument itemDocument) |
|
void |
processPropertyDocument(org.wikidata.wdtk.datamodel.interfaces.PropertyDocument propertyDocument) |
|
void |
setTasks(int tasks) |
Sets the tasks that should be performed during export.
|
public static final int TASK_STATEMENTS
public static final int TASK_SITELINKS
public static final int TASK_DATATYPES
public static final int TASK_PROPERTY_LINKS
public static final int TASK_LABELS
public static final int TASK_DESCRIPTIONS
public static final int TASK_ALIASES
public static final int TASK_TERMS
public static final int TASK_ALL_EXACT_DATA
public static final int TASK_TAXONOMY
public static final int TASK_INSTANCE_OF
public static final int TASK_SIMPLE_STATEMENTS
public static final int TASK_SUBPROPERTIES
public static final int TASK_ITEMS
public static final int TASK_PROPERTIES
public static final int TASK_ALL_ENTITIES
public RdfSerializer(org.openrdf.rio.RDFFormat format,
java.io.OutputStream output,
org.wikidata.wdtk.datamodel.interfaces.Sites sites,
PropertyRegister propertyRegister)
format - RDF format, such as RDFFormat.TURTLEoutput - the output stream to write tosites - information about site linkspublic void setTasks(int tasks)
TASK_STATEMENTS.tasks - the tasks to be performedpublic int getTasks()
TASK_STATEMENTS.public long getTripleCount()
public void open()
open in interface org.wikidata.wdtk.datamodel.interfaces.EntityDocumentDumpProcessorpublic void processItemDocument(org.wikidata.wdtk.datamodel.interfaces.ItemDocument itemDocument)
processItemDocument in interface org.wikidata.wdtk.datamodel.interfaces.EntityDocumentProcessorpublic void processPropertyDocument(org.wikidata.wdtk.datamodel.interfaces.PropertyDocument propertyDocument)
processPropertyDocument in interface org.wikidata.wdtk.datamodel.interfaces.EntityDocumentProcessorpublic void close()
close in interface org.wikidata.wdtk.datamodel.interfaces.EntityDocumentDumpProcessorCopyright © 2014–2017 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage