org.w3c.rdf.implementation.syntax.sirpac
Class SiRS
java.lang.Object
|
+--org.w3c.rdf.implementation.syntax.sirpac.SiRS
- All Implemented Interfaces:
- java.util.Comparator, RDFSerializer
- public class SiRS
- extends java.lang.Object
- implements java.util.Comparator, RDFSerializer
A default implementation of the RDFMS interface.
For parsing it uses a modified version of
SiRPAC parser written by Janne Saarela at W3C.
Constructor Summary |
SiRS()
|
SiRS(java.util.Map namespaceMap)
Allows overriding the way namespaces abbreviations are generated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
equals |
SiRS
public SiRS()
SiRS
public SiRS(java.util.Map namespaceMap)
- Allows overriding the way namespaces abbreviations are generated.
Maps namespaces to abbreviations. If a mapping is missing, a default one will be used.
useExperimentalFeatures
public void useExperimentalFeatures(boolean b)
compare
public int compare(java.lang.Object o1,
java.lang.Object o2)
- Specified by:
compare
in interface java.util.Comparator
serialize
public void serialize(Model m,
java.io.Writer w)
throws java.io.IOException,
ModelException
- Description copied from interface:
RDFSerializer
- Serialize a given model into an XML character output stream.
- Specified by:
serialize
in interface RDFSerializer