Exemple #1
0
 public RDFa1(IDocument document)
 {
     this.document=document;
     this.context=new RDFa.EvalContext();
     this.context.baseURI=document.getBaseURI();
     this.context.namespaces=new PeterO.Support.LenientDictionary<string,string>();
     if(!URIUtility.hasScheme(this.context.baseURI))
       throw new ArgumentException("baseURI: "+this.context.baseURI);
     this.context.parentSubject=RDFTerm.fromIRI(this.context.baseURI);
     this.context.parentObject=null;
     this.context.iriMap=new PeterO.Support.LenientDictionary<string,string>();
     this.context.listMap=new PeterO.Support.LenientDictionary<string,IList<RDFTerm>>();
     this.context.incompleteTriples=new List<RDFa.IncompleteTriple>();
     this.context.language=null;
     this.outputGraph=new HashSet<RDFTriple>();
     if(isHtmlElement(document.getDocumentElement(),"html")){
       xhtml=true;
     }
 }