public class KiWiIO extends Object
Modifier and Type | Field and Description |
---|---|
static String |
HTTP_LOCALHOST |
static int |
MODE_COMPRESSED |
static int |
MODE_DEFAULT |
static int |
MODE_PREFIX |
static String |
NS_DBPEDIA |
static String |
NS_FREEBASE |
static String |
NS_REDLINK |
Constructor and Description |
---|
KiWiIO() |
Modifier and Type | Method and Description |
---|---|
static KiWiAnonResource |
readBNode(DataInput input)
Read a KiWiAnonResource serialized with writeBNode from a DataInput source
|
static KiWiBooleanLiteral |
readBooleanLiteral(DataInput input)
Read a KiWiBooleanLiteral serialized with writeBooleanLiteral from a DataInput source
|
static KiWiDateLiteral |
readDateLiteral(DataInput input)
Read a KiWiDateLiteral serialized with writeDateLiteral from a DataInput source
|
static KiWiDoubleLiteral |
readDoubleLiteral(DataInput input)
Read a KiWiDoubleLiteral serialized with writeDoubleLiteral from a DataInput source
|
static KiWiIntLiteral |
readIntLiteral(DataInput input)
Read a KiWiIntLiteral serialized with writeIntLiteral from a DataInput source
|
static KiWiNode |
readNode(DataInput input)
Read a KiWiNode serialized with writeNode and return it.
|
static KiWiStringLiteral |
readStringLiteral(DataInput input)
Read a KiWiStringLiteral serialized with writeStringLiteral from a DataInput source
|
static KiWiTriple |
readTriple(DataInput input)
Read a KiWiTriple serialized with writeTriple from a DataInput source
|
static KiWiUriResource |
readURI(DataInput input)
Read a KiWiUriResource serialized with writeURI and return it.
|
static void |
writeBNode(DataOutput out,
KiWiAnonResource bnode)
Efficiently serialize a KiWiAnonResource to a DataOutput destination.
|
static void |
writeBooleanLiteral(DataOutput out,
KiWiBooleanLiteral literal)
Efficiently serialize a KiWiBooleanLiteral to a DataOutput destination.
|
static void |
writeDateLiteral(DataOutput out,
KiWiDateLiteral literal)
Efficiently serialize a KiWiDateLiteral to a DataOutput destination.
|
static void |
writeDoubleLiteral(DataOutput out,
KiWiDoubleLiteral literal)
Efficiently serialize a KiWiDoubleLiteral to a DataOutput destination.
|
static void |
writeIntLiteral(DataOutput out,
KiWiIntLiteral literal)
Efficiently serialize a KiWiIntLiteral to a DataOutput destination.
|
static void |
writeNode(DataOutput output,
KiWiNode node)
Efficiently serialize a KiWiNode to a DataOutput destination.
|
static void |
writeStringLiteral(DataOutput out,
KiWiStringLiteral literal)
Efficiently serialize a KiWiStringLiteral to a DataOutput destination.
|
static void |
writeTriple(DataOutput output,
KiWiTriple triple)
Efficiently serialize a KiWiTriple to a DataOutput destination.
|
static void |
writeURI(DataOutput out,
KiWiUriResource uri)
Efficiently serialize a KiWiUriResource to a DataOutput destination, using prefix compression for commonly used
prefixes.
|
public static final String NS_DBPEDIA
public static final String NS_FREEBASE
public static final int MODE_DEFAULT
public static final int MODE_PREFIX
public static final int MODE_COMPRESSED
public static final String HTTP_LOCALHOST
public static final String NS_REDLINK
public static void writeNode(DataOutput output, KiWiNode node) throws IOException
output
- DataOutput destinationnode
- KiWiNode to serializeIOException
public static KiWiNode readNode(DataInput input) throws IOException
input
- DataInput sourceIOException
public static void writeURI(DataOutput out, KiWiUriResource uri) throws IOException
out
- DataOutput destinationuri
- KiWiUriResource to serializeIOException
public static KiWiUriResource readURI(DataInput input) throws IOException
input
- DataInput sourceIOException
public static void writeBNode(DataOutput out, KiWiAnonResource bnode) throws IOException
out
- the destinationbnode
- the KiWiAnonResource to serializeIOException
public static KiWiAnonResource readBNode(DataInput input) throws IOException
input
- the sourceIOException
public static void writeBooleanLiteral(DataOutput out, KiWiBooleanLiteral literal) throws IOException
out
- the destinationliteral
- the KiWiBooleanLiteral to serializeIOException
public static KiWiBooleanLiteral readBooleanLiteral(DataInput input) throws IOException
input
- the sourceIOException
public static void writeDateLiteral(DataOutput out, KiWiDateLiteral literal) throws IOException
out
- the destinationliteral
- the KiWiDateLiteral to serializeIOException
public static KiWiDateLiteral readDateLiteral(DataInput input) throws IOException
input
- the sourceIOException
public static void writeDoubleLiteral(DataOutput out, KiWiDoubleLiteral literal) throws IOException
out
- the destinationliteral
- the KiWiDoubleLiteral to serializeIOException
public static KiWiDoubleLiteral readDoubleLiteral(DataInput input) throws IOException
input
- the sourceIOException
public static void writeIntLiteral(DataOutput out, KiWiIntLiteral literal) throws IOException
out
- the destinationliteral
- the KiWiIntLiteral to serializeIOException
public static KiWiIntLiteral readIntLiteral(DataInput input) throws IOException
input
- the sourceIOException
public static void writeStringLiteral(DataOutput out, KiWiStringLiteral literal) throws IOException
out
- the destinationliteral
- the KiWiStringLiteral to serializeIOException
public static KiWiStringLiteral readStringLiteral(DataInput input) throws IOException
input
- the sourceIOException
public static void writeTriple(DataOutput output, KiWiTriple triple) throws IOException
output
- the destinationtriple
- the KiWiTriple to serializeIOException
public static KiWiTriple readTriple(DataInput input) throws IOException
input
- the sourceIOException
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.