Пример #1
0
            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();
            }
Пример #2
0
            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();
            }
Пример #3
0
 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();
 }
Пример #4
0
 public override void WriteIdentifingAttribute(RdfXmlWriter rdfWriter, XmlWriter xmlWriter)
 {
     xmlWriter.WriteAttributeString((string)rdfWriter.itsNamespacePrefixes[RDF_NAMESPACE_URI], "nodeID", RDF_NAMESPACE_URI, itsNodeId);
 }
Пример #5
0
 public abstract void WriteIdentifingAttribute(RdfXmlWriter rdfWriter, XmlWriter xmlWriter);