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); }
private IEnumerable <RdfNode> GetSubClassNode(RdfNode node) { return(ExecuteQuery(this.queryHelper.GetQueryAllSubClassesOf(node.Uri)).ToRdfNodes()); }