Beispiel #1
0
        /// <summary>
        /// Stops exporting Sensor Data.
        /// </summary>
        public override void End()
        {
            base.End();

            TurtleDocument TurtleDoc = new TurtleDocument(this.turtle.ToString());

            RdfDocument.GenerateRdfXml(this.xml, TurtleDoc.GetPrefixedNamespaces(null), TurtleDoc.Triples, false);
        }
 private RdfResource[] CreateResources(IEnumerable<DcValue> items, RdfDocument RdfDocument)
 {
     var resources = new List<RdfResource>();
     if (items == null) return null;
     foreach (var item in items)
     {
         resources.Add(CreateResource(item.Value, RdfDocument));
     }
     return resources.ToArray();
 }
 protected RdfResource CreateResource(string thing, RdfDocument RdfDocument)
 {
     return new RdfLiteralString(thing);
 }
 public DublinCoreConverter(Store store)
 {
     Store = store;
     RdfDocument = new RdfDocument(store);
 }