Example #1
0
 private void setupDefaultPrefixes() {
   setPrefix("owl:", Namespaces.OWL.toString());
   setPrefix("rdfs:", Namespaces.RDFS.toString());
   setPrefix("rdf:", Namespaces.RDF.toString());
   setPrefix("xsd:", Namespaces.XSD.toString());
   setPrefix("xml:", Namespaces.XML.toString());
 }
  public ConflictGraphXMLSerializerImpl(Writer writer) {
    // Instantiate the COODE XML writer
    XMLWriterNamespaceManager nsm = new XMLWriterNamespaceManager(Constants.PRONTO_DEFAULT_URI);

    nsm.setPrefix("xsd", Namespaces.XSD.toString());
    nsm.setPrefix("rdf", Namespaces.RDF.toString());
    nsm.setPrefix("rdfs", Namespaces.RDFS.toString());
    nsm.setPrefix("xml", Namespaces.XML.toString());
    nsm.setPrefix("pronto", Constants.PRONTO_DEFAULT_URI);

    m_xmlWriter = XMLWriterFactory.getInstance().createXMLWriter(writer, nsm, "");
    m_ccSerializer = new CCXMLSerializerImpl(m_xmlWriter);
  }