org.w3c.rdf.implementation.syntax.sirpac
Class SiRS
java.lang.Object
|
+--org.w3c.rdf.implementation.syntax.sirpac.SiRS
- public class SiRS
- extends java.lang.Object
- implements Comparer, 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()
|
|
Method Summary |
int |
compare(java.lang.Object handle,
java.lang.Object o1,
java.lang.Object o2)
Handle is used e.g. |
void |
serialize(Model m,
java.io.Writer w)
Serialize a given model into an XML character output stream. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
SiRS
public SiRS()
compare
public int compare(java.lang.Object handle,
java.lang.Object o1,
java.lang.Object o2)
- Description copied from interface: Comparer
- Handle is used e.g. to distinguish different types of sorting
or just passed as an additional parameter.
<0: o1 < o2
0: o1 = o2
>0: o1 > o2
- Specified by:
- compare in interface Comparer
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