public void Write(RdfXmlWriter rdfWriter, XmlWriter xmlWriter) { xmlWriter.WriteStartElement((string)rdfWriter.itsNamespacePrefixes[itsPredicateQualifiedName.GetNamespace()], itsPredicateQualifiedName.GetLocalName(), itsPredicateQualifiedName.GetNamespace()); if (itsLanguage != null) { xmlWriter.WriteAttributeString("xml", "lang", null, itsLanguage); } else if (itsDataType != null) { xmlWriter.WriteAttributeString((string)rdfWriter.itsNamespacePrefixes[RDF_NAMESPACE_URI], "datatype", RDF_NAMESPACE_URI, itsDataType); } xmlWriter.WriteString(itsLexicalValue); xmlWriter.WriteEndElement(); }
public void Write(RdfXmlWriter rdfWriter, XmlWriter xmlWriter) { if (itsTypeUriRef == null) { xmlWriter.WriteStartElement((string)rdfWriter.itsNamespacePrefixes[RDF_NAMESPACE_URI], "Description", RDF_NAMESPACE_URI); } else { QualifiedName typeQualifiedName = rdfWriter.ParseQualifiedName(itsTypeUriRef); xmlWriter.WriteStartElement((string)rdfWriter.itsNamespacePrefixes[typeQualifiedName.GetNamespace()], typeQualifiedName.GetLocalName(), typeQualifiedName.GetNamespace()); } WriteIdentifingAttribute(rdfWriter, xmlWriter); foreach (Property property in itsProperties) { property.Write(rdfWriter, xmlWriter); } xmlWriter.WriteEndElement(); }
public void Write(RdfXmlWriter rdfWriter, XmlWriter xmlWriter) { xmlWriter.WriteStartElement((string)rdfWriter.itsNamespacePrefixes[itsPredicateQualifiedName.GetNamespace()], itsPredicateQualifiedName.GetLocalName(), itsPredicateQualifiedName.GetNamespace()); xmlWriter.WriteAttributeString((string)rdfWriter.itsNamespacePrefixes[RDF_NAMESPACE_URI], "nodeID", RDF_NAMESPACE_URI, itsNodeId); xmlWriter.WriteEndElement(); }
public override void WriteIdentifingAttribute(RdfXmlWriter rdfWriter, XmlWriter xmlWriter) { xmlWriter.WriteAttributeString((string)rdfWriter.itsNamespacePrefixes[RDF_NAMESPACE_URI], "nodeID", RDF_NAMESPACE_URI, itsNodeId); }
public abstract void WriteIdentifingAttribute(RdfXmlWriter rdfWriter, XmlWriter xmlWriter);