|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.any23.vocab.RDFSchemaUtils
public class RDFSchemaUtils
This class provides a set of methods for generating RDF Schema.
| Nested Class Summary | |
|---|---|
static class |
RDFSchemaUtils.VocabularyFormat
Supported formats for vocabulary serialization. |
| Method Summary | |
|---|---|
static void |
serializeVocabularies(RDFSchemaUtils.VocabularyFormat 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,
RDFSchemaUtils.VocabularyFormat format)
Serialized the given vocabulary to NQuads and return them as string. |
static void |
serializeVocabulary(Vocabulary vocabulary,
RDFSchemaUtils.VocabularyFormat 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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,
RDFSchemaUtils.VocabularyFormat 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,
RDFSchemaUtils.VocabularyFormat 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(RDFSchemaUtils.VocabularyFormat format,
PrintStream ps)
format - output format for vocabularies.ps - output print stream.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||