Exemplo n.º 1
0
        public static RdfNode ToRdfNode(this SparqlResult result)
        {
            var node = new RdfNode()
            {
                Uri         = result.GetNode <UriNode>("item")?.Uri,
                Comment     = result.GetNode <ILiteralNode>("comment")?.Value,
                Label       = result.GetNode <ILiteralNode>("label")?.Value,
                PredicateOf = result.GetNode <IUriNode>("predicateOf")?.Uri
            };

            return(node);
        }
Exemplo n.º 2
0
 private IEnumerable <RdfNode> GetSubClassNode(RdfNode node)
 {
     return(ExecuteQuery(this.queryHelper.GetQueryAllSubClassesOf(node.Uri)).ToRdfNodes());
 }