public void Extend(Entity e) { var dp = e.GetDatapoint(); RDFGraph.Assert(new Triple(un, RDF_TYPE, LDP_BASIC_CONTAINER)); RDFGraph.Assert(new Triple(un, RDFGraph.CreateUriNode("ldp:contains"), RDFGraph.CreateUriNode(new Uri(e.GetDatapoint().Route)))); }
protected override void BuildRDFGraph() { RDFGraph.Assert(new Triple(un, RDF_TYPE, LDP_BASIC_CONTAINER)); RDFGraph.Assert(new Triple(un, DCT_IDENTIFIER, n_e)); RDFGraph.Assert(new Triple(un, LDP_HASMEMBERRELATION, DCT_HAS_PART)); addComponentNodes(); }
private void addComponentNodes() { foreach (Component c in e.Components) { var componentUri = new Uri(dp_uri.TrimEnd('/') + "/" + c.Name + "/"); RDFGraph.Assert(new Triple(un, DCT_HAS_PART, RDFGraph.CreateUriNode(componentUri))); } }
public void AddExternalEntity(string externalUri) { RDFGraph.NamespaceMap.AddNamespace("foaf", new Uri("http://xmlns.com/foaf/0.1/")); RDFGraph.Assert(new Triple(un, RDFGraph.CreateUriNode("foaf:knows"), RDFGraph.CreateUriNode(new Uri(externalUri)) )); }
private void CreateAttributeTriples() { foreach (AttributePrototype a in c.Prototype.AttributePrototypes) { string attributeUri = dp_uri.TrimEnd('/') + "/" + a.Name; RDFGraph.Assert(new Triple(un, DCT_HAS_PART, RDFGraph.CreateUriNode(new Uri(attributeUri)))); } }
protected override void BuildRDFGraph() { RDFGraph.Assert(new Triple(un, RDF_TYPE, ECA_COMPONENT)); foreach (AttributePrototype a in componentPrototype.AttributePrototypes) { IUriNode u_a = createAttributeUriNode(a, RDFGraph); RDFGraph.Assert(un, DCT_HAS_PART, u_a); } }
private void buildRDFBaseGraph() { RDFGraph.Assert(new Triple(un, RDF_TYPE, LDP_RDF_RESOURCE)); RDFGraph.Assert(new Triple(un, DCT_IDENTIFIER, RDFGraph.CreateLiteralNode(attribute.Prototype.Name, new Uri("xsd:string")))); string compUri = dp_uri.Replace("/" + attribute.Prototype.Name, ""); RDFGraph.Assert(new Triple(un, DCT_IS_PART_OF, RDFGraph.CreateUriNode(new Uri(compUri)))); }
protected override void BuildRDFGraph() { RDFGraph.Assert(new Triple(un, RDF_TYPE, LDP_RDF_RESOURCE)); RDFGraph.Assert(new Triple(un, DCT_IDENTIFIER, RDFGraph.CreateLiteralNode(attribute.Prototype.Name, "xsd:string"))); string compUri = dp_uri.Replace("/" + attribute.Prototype.Name, ""); RDFGraph.Assert(new Triple(un, DCT_IS_PART_OF, RDFGraph.CreateUriNode(new Uri(compUri)))); string valuestring = attribute?.Value?.ToString() ?? "null"; RDFGraph.Assert(new Triple(un, RDF_VALUE, RDFGraph.CreateLiteralNode(valuestring, attribute.Type.transformTypeToString()))); }
protected override void BuildRDFGraph() { RDFGraph.Assert(new Triple(un, RDF_TYPE, LDP_BASIC_CONTAINER)); RDFGraph.Assert(new Triple(un, DCT_IDENTIFIER, n_c)); RDFGraph.Assert(new Triple(un, DCT_IS_PART_OF, GetContainingEntityURI())); RDFGraph.Assert(new Triple(un, LDP_HASMEMBERRELATION, DCT_HAS_PART)); var definedByUri = new Uri(u.getPrototypeBaseUri() + c.Name + "/"); RDFGraph.Assert(new Triple(un, RDFS_IS_DEFINED_BY, RDFGraph.CreateUriNode(definedByUri))); CreateAttributeTriples(); }
public void AddComponentTriple(string componentUri) { RDFGraph.Assert(new Triple(un, DCT_HAS_PART, RDFGraph.CreateUriNode(new Uri(componentUri)))); }
protected override void BuildRDFGraph() { buildRDFBaseGraph(); RDFGraph.Assert(new Triple(un, RDF_VALUE, RDFGraph.CreateUriNode(new Uri(dp_uri + "/value/")))); }
public void AddTypeRoute(string typeRoute) { RDFGraph.Assert(new Triple(un, RDF_TYPE, RDFGraph.CreateUriNode(new Uri(typeRoute)))); }
public AttributeLDPGraph(Uri u, ECABaseModel.Attribute a, string EntityUri) : base(u) { attribute = a; buildRDFBaseGraph(); RDFGraph.Assert(new Triple(un, RDF_VALUE, RDFGraph.CreateUriNode(new Uri(EntityUri)))); }
public void AddExternalContainer(string externalUri) { RDFGraph.Assert(new Triple(un, RDFGraph.CreateUriNode("rdfs:seeAlso"), RDFGraph.CreateUriNode(new Uri(externalUri)))); }
public void AddAttributeTriple(string attributeUri) { RDFGraph.Assert(new Triple(un, DCT_HAS_PART, RDFGraph.CreateUriNode(new Uri(attributeUri)))); }