|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ontoware.rdf2go.util.VocabularyWriter
public class VocabularyWriter
reads an RDF/S file and creates an RDF2Go Vocabulary file from it. usage:
VocabularyWriter -i <inputrdfsfile> -o <outputdir> --package <packagename> -a <namespace> -n <nameofjavafile> -namespacestrict <false|true> -namespacestrict If true, only elements from within the namespace (-a) are generated. Default false. Example values: --package org.semanticdesktop.aperture.outlook.vocabulary -o src/outlook/org/semanticdesktop/aperture/outlook/vocabulary/ -i doc/ontology/data.rdfs -a http://aperture.semanticdesktop.org/ontology/data# -n DATA
| Constructor Summary | |
|---|---|
VocabularyWriter()
|
|
| Method Summary | |
|---|---|
protected java.lang.String |
asLegalJavaID(java.lang.String s,
boolean cap)
Convert s to a legal Java identifier; capitalise first char if cap is true this method is copied from jena code. |
void |
generateElement(URI type,
boolean isProperty)
|
void |
getOpt(java.lang.String[] args)
|
void |
go(java.lang.String[] args)
|
static void |
main(java.lang.String[] args)
documentation see class, above. |
void |
printCommentAndLabel(URI uri)
print comment and label of the uri to the passed stream |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VocabularyWriter()
| Method Detail |
|---|
public void go(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
public void generateElement(URI type,
boolean isProperty)
throws java.lang.Exception
java.lang.Exception
public void printCommentAndLabel(URI uri)
throws java.lang.Exception
uri -
java.lang.Exception
public void getOpt(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
protected java.lang.String asLegalJavaID(java.lang.String s,
boolean cap)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||