示例#1
0
        public XmlRdfProcessor(IRdfHandler rdfHandler, XmlPlaceholderResolver entityResolver = null) : base(rdfHandler)
        {
            rdf      = rdfHandler;
            linkName = entityResolver?.InstructionTarget;

            ProcessingInstructionMapping["xml-stylesheet"] = xmlNSUri;

            rdf.StartRdf();

            rdf.HandleNamespace("rdf", new Uri(rdfNS));
            rdf.HandleNamespace("rdfs", new Uri(rdfsNS));
            rdf.HandleNamespace("xsd", new Uri(xsdNS));
        }
示例#2
0
 public XmlRdfProcessor(Graph graph, XmlPlaceholderResolver linkResolver = null) : this(new GraphHandler(graph), linkResolver)
 {
 }