Пример #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)
 {
 }