Skip to content

Help needed with QueryBuilder #512

Answered by vadimasg
vadimasg asked this question in Q&A
Discussion options

You must be logged in to vote

Answered:

The value that you provided for the object is being treated as a full URI and not as a compact URI.

You can fix this by declaring the namespace prefix mapping for the prefix cids and then using .Object("cids:Organization") to add the object part of the triple pattern. To set the namespace mapping, create a NamespaceMapper and add the prefix mapping to it. e.g.

var prefixes = new NamespaceMapper();
prefixes.AddNamespace("cids", new Uri("http://some.url/here/"));

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vadimasg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant