public Graph GetMergedGraph() { Graph mergedGraph = RDFGraph.CopyGraph(); foreach (Component c in e.Components) { mergedGraph.Merge(c.GetDatapoint().graph.GetMergedGraph()); } return(mergedGraph); }
public Graph GetMergedGraph() { Graph mergedGraph = RDFGraph.CopyGraph(); foreach (AttributePrototype ap in c.Prototype.AttributePrototypes) { mergedGraph.Merge(c[ap.Name].GetDatapoint().graph.getMergedGraph()); } return(mergedGraph); }
public Graph getMergedGraph() { Graph mergedGraph = RDFGraph.CopyGraph(); mergedGraph.Assert(new Triple(un, RDF_VALUE, RDFGraph.CreateLiteralNode(attribute.Value.ToString(), new Uri("xsd:attributeValue")))); if (attribute.Type.Equals(typeof(EntityCollection))) { foreach (Entity e in (EntityCollection)attribute.Value) { mergedGraph.Assert(new Triple(un, RDFGraph.CreateUriNode("ldp:contains"), RDFGraph.CreateUriNode(new Uri(e.GetDatapoint().Route)) )); } } return(mergedGraph); }