Exemplo n.º 1
0
        public Graph GetMergedGraph()
        {
            Graph mergedGraph = RDFGraph.CopyGraph();

            foreach (Component c in e.Components)
            {
                mergedGraph.Merge(c.GetDatapoint().graph.GetMergedGraph());
            }
            return(mergedGraph);
        }
Exemplo n.º 2
0
        public Graph GetMergedGraph()
        {
            Graph mergedGraph = RDFGraph.CopyGraph();

            foreach (AttributePrototype ap in c.Prototype.AttributePrototypes)
            {
                mergedGraph.Merge(c[ap.Name].GetDatapoint().graph.getMergedGraph());
            }
            return(mergedGraph);
        }
Exemplo n.º 3
0
        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);
        }