public class RDFSchemaUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
serializeVocabularies(org.openrdf.rio.RDFFormat format,
PrintStream ps)
Serializes all the vocabularies to NQuads over the given output stream.
|
static void |
serializeVocabulary(org.openrdf.model.URI namespace,
org.openrdf.model.URI[] classes,
org.openrdf.model.URI[] properties,
Map<org.openrdf.model.URI,String> comments,
org.openrdf.rio.RDFWriter writer)
Serializes a vocabulary composed of the given
namespace ,
resources and properties . |
static String |
serializeVocabulary(Vocabulary vocabulary,
org.openrdf.rio.RDFFormat format)
Serialized the given
vocabulary to NQuads and return them as string. |
static void |
serializeVocabulary(Vocabulary vocabulary,
org.openrdf.rio.RDFFormat format,
boolean willFollowAnother,
PrintStream ps)
Serializes the given
vocabulary to NQuads over the given output stream. |
static void |
serializeVocabulary(Vocabulary vocabulary,
org.openrdf.rio.RDFWriter writer)
Serializes the given
vocabulary to triples over the given writer . |
public static void serializeVocabulary(org.openrdf.model.URI namespace, org.openrdf.model.URI[] classes, org.openrdf.model.URI[] properties, Map<org.openrdf.model.URI,String> comments, org.openrdf.rio.RDFWriter writer) throws org.openrdf.rio.RDFHandlerException
namespace
,
resources
and properties
.namespace
- vocabulary namespace.classes
- list of classes.properties
- list of properties.comments
- map of resource comments.writer
- writer to print out the RDF Schema triples.org.openrdf.rio.RDFHandlerException
public static void serializeVocabulary(Vocabulary vocabulary, org.openrdf.rio.RDFWriter writer) throws org.openrdf.rio.RDFHandlerException
vocabulary
to triples over the given writer
.vocabulary
- vocabulary to be serialized.writer
- output writer.org.openrdf.rio.RDFHandlerException
public static void serializeVocabulary(Vocabulary vocabulary, org.openrdf.rio.RDFFormat format, boolean willFollowAnother, PrintStream ps) throws org.openrdf.rio.RDFHandlerException
vocabulary
to NQuads over the given output stream.vocabulary
- vocabulary to be serialized.format
- output format for vocabulary.willFollowAnother
- if true
another vocab will be printed in the same stream.ps
- output stream.org.openrdf.rio.RDFHandlerException
public static String serializeVocabulary(Vocabulary vocabulary, org.openrdf.rio.RDFFormat format) throws org.openrdf.rio.RDFHandlerException
vocabulary
to NQuads and return them as string.vocabulary
- vocabulary to be serialized.format
- output format for vocabulary.org.openrdf.rio.RDFHandlerException
public static void serializeVocabularies(org.openrdf.rio.RDFFormat format, PrintStream ps)
format
- output format for vocabularies.ps
- output print stream.Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.