| java.lang.Object org.ontoware.rdf2go.model.Syntax
Syntax | public class Syntax (Code) | | Class for RDF syntaxes, and registry for them. A framework can register new
syntaxes by creating them with the constructor that automatically registers,
or by calling the
Syntax.register(Syntax) method.
You can chose to use a Syntax in your application without registering it.
author: voelkel, sauermann |
Ntriples | final public static Syntax Ntriples(Code) | | RDF syntax NTriples
|
RdfXml | final public static Syntax RdfXml(Code) | | RDF syntax RDF XML
|
Trig | final public static Syntax Trig(Code) | | RDF Syntax Trig For more info see
http://sites.wiwiss.fu-berlin.de/suhl/bizer/TriG/
|
Trix | final public static Syntax Trix(Code) | | RDF syntax Trix For mroe info see: http://swdev.nokia.com/trix/TriX.html
|
Turtle | final public static Syntax Turtle(Code) | | RDF syntax Turtle
|
Syntax | public Syntax(String name, String mimeType, String filenameExtension)(Code) | | Generate a new Syntax
Parameters: name - the name of the RDF syntax Parameters: mimeType - the MIMEtype of the RDF syntax |
Syntax | public Syntax(String name, String mimeType, String filenameExtension, boolean registerItNow)(Code) | | Generate a new Syntax and register it
Parameters: name - the name of the RDF syntax Parameters: mimeType - the MIMEtype of the RDF syntax Parameters: registerItNow - register the new Syntax now. |
forMimeType | public static Syntax forMimeType(String mimeType)(Code) | | return the RDF syntax with the given MIME-type.
Parameters: mimeType - the MIME-type of the syntax to find the syntax or null , if none registered |
forName | public static Syntax forName(String name)(Code) | | return the RDF syntax with the given name.
Parameters: name - the name of the syntax to search the syntax or null , if none registered |
getFilenameExtension | public String getFilenameExtension()(Code) | | the suggested filename-extension, including the leading '.' |
getMimeType | public String getMimeType()(Code) | | return the MIME-type of this format.
the MIME type |
getName | public String getName()(Code) | | the common name of this format |
list | public static List<Syntax> list()(Code) | | list all available syntaxes. List is not modifyable.
a list of available syntaxes |
register | public static void register(Syntax syntax)(Code) | | register a new RDF Syntax you want to have available throughout your
application.
Parameters: syntax - the new syntax to register. |
unregister | public static boolean unregister(Syntax syntax)(Code) | | unregister an RDF Syntax from which you know that your application will
never ever support it. This may help you to build user interfaces where
users can select RDF syntaxes. If the syntax was unknown, returns false
Parameters: syntax - the syntax to unregister true, if the syntax was found and removed |
|
|