C-SPARQL query - match exact string literal
up vote
2
down vote
favorite
I am working with C-SPARQL and I want to query triples received from a stream. However I encountered an issue when using a query in which I want to match an exact string literal. I usually get a result with my queries (data is coming from the string) but when I add a exact match for a string value for a literal, I always don't get any results. As if there is no match found. However if I look at all triples received from my stream there are entries that would match my string literal.
Here is an example of my query:
REGISTER QUERY LogStream AS
PREFIX person: <http://vocab/Person#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?s
FROM STREAM <ws://localhost:8124/tw/stream> [RANGE 5s STEP 1s]
WHERE {
?s person:name "Huber" .
}
I also tried working with filters and regex which are the following 2 examples:
REGISTER QUERY LogStream AS
PREFIX person: <http://vocab/Person#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?s ?o
FROM STREAM <ws://localhost:8124/tw/stream> [RANGE 5s STEP 1s]
WHERE {
?s person:name ?o FILTER ( ?o = "Huber" ) .
}
REGISTER QUERY LogStream AS
PREFIX person: <http://vocab/Person#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?s ?o
FROM STREAM <ws://localhost:8124/tw/stream> [RANGE 5s STEP 1s]
WHERE {
?s person:name ?o FILTER (regex(?o, '^Huber$')) .
}
None of the queries give my any results as if there are no matches.
If I just execute the following query, I get a lot of results with name = Huber:
REGISTER QUERY LogStream AS
PREFIX person: <http://vocab/Person#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?s ?o
FROM STREAM <ws://localhost:8124/tw/stream> [RANGE 5s STEP 1s]
WHERE {
?s person:name ?o .
}
I am not sure if C-SPARQL supports all features of SPARQL. I read in a different post that round() is not supported in C-SPARQL. Since the match of an exact String is a basic feature, at least in my opinion, I am not sure if I might do something wrong or if I miss some details.
I tried the queries in SPARQL, querying a triplestore, and there all queries work just fine.
So, I am a bit confused why the string match is not working here in C-SPARQL.
Does anyone has some hints or suggestions?
EDIT (further information about how my data looks like):
The data I am trying to query using C-SPARQL are JSON-LD entries coming from a Web stream. The stream is created and published via Triplewave.
Here would be a small example of a JSON-LD:
[
{
"@id": "http://Stream/d7e4e816-0931-42ce-a21a-cbfaa552855d",
"http://www.w3.org/ns/prov#generatedAtTime": [
{
"@value": "2018-11-14T07:08:45.182Z"
}
],
"@graph": [
{
"@id": "http://schema.org/Person#1234",
"http://schema.org/name": [
{
"@value": "Huber"
}
]
},
{
"@id": "http://schema.org/Job#1234",
"http://schema.org/title"": [
{
"@value": "Professor"
}
]
}
]
}
]
There is no type information or any language tag.
In order to query my web stream using C-SPARQL I implemented a RdfStream which receives the JSON-LD data via a websocket and created RdfQuadruple of all entries in my graph and puts it into the RdfStream.
An example of a RdfQuadruple is this:
http://schema.org/Person#1234 http://schema.org/name Huber .
stream sparql rdf semantic-web triples
add a comment |
up vote
2
down vote
favorite
I am working with C-SPARQL and I want to query triples received from a stream. However I encountered an issue when using a query in which I want to match an exact string literal. I usually get a result with my queries (data is coming from the string) but when I add a exact match for a string value for a literal, I always don't get any results. As if there is no match found. However if I look at all triples received from my stream there are entries that would match my string literal.
Here is an example of my query:
REGISTER QUERY LogStream AS
PREFIX person: <http://vocab/Person#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?s
FROM STREAM <ws://localhost:8124/tw/stream> [RANGE 5s STEP 1s]
WHERE {
?s person:name "Huber" .
}
I also tried working with filters and regex which are the following 2 examples:
REGISTER QUERY LogStream AS
PREFIX person: <http://vocab/Person#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?s ?o
FROM STREAM <ws://localhost:8124/tw/stream> [RANGE 5s STEP 1s]
WHERE {
?s person:name ?o FILTER ( ?o = "Huber" ) .
}
REGISTER QUERY LogStream AS
PREFIX person: <http://vocab/Person#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?s ?o
FROM STREAM <ws://localhost:8124/tw/stream> [RANGE 5s STEP 1s]
WHERE {
?s person:name ?o FILTER (regex(?o, '^Huber$')) .
}
None of the queries give my any results as if there are no matches.
If I just execute the following query, I get a lot of results with name = Huber:
REGISTER QUERY LogStream AS
PREFIX person: <http://vocab/Person#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?s ?o
FROM STREAM <ws://localhost:8124/tw/stream> [RANGE 5s STEP 1s]
WHERE {
?s person:name ?o .
}
I am not sure if C-SPARQL supports all features of SPARQL. I read in a different post that round() is not supported in C-SPARQL. Since the match of an exact String is a basic feature, at least in my opinion, I am not sure if I might do something wrong or if I miss some details.
I tried the queries in SPARQL, querying a triplestore, and there all queries work just fine.
So, I am a bit confused why the string match is not working here in C-SPARQL.
Does anyone has some hints or suggestions?
EDIT (further information about how my data looks like):
The data I am trying to query using C-SPARQL are JSON-LD entries coming from a Web stream. The stream is created and published via Triplewave.
Here would be a small example of a JSON-LD:
[
{
"@id": "http://Stream/d7e4e816-0931-42ce-a21a-cbfaa552855d",
"http://www.w3.org/ns/prov#generatedAtTime": [
{
"@value": "2018-11-14T07:08:45.182Z"
}
],
"@graph": [
{
"@id": "http://schema.org/Person#1234",
"http://schema.org/name": [
{
"@value": "Huber"
}
]
},
{
"@id": "http://schema.org/Job#1234",
"http://schema.org/title"": [
{
"@value": "Professor"
}
]
}
]
}
]
There is no type information or any language tag.
In order to query my web stream using C-SPARQL I implemented a RdfStream which receives the JSON-LD data via a websocket and created RdfQuadruple of all entries in my graph and puts it into the RdfStream.
An example of a RdfQuadruple is this:
http://schema.org/Person#1234 http://schema.org/name Huber .
stream sparql rdf semantic-web triples
Are you sure these literals are notrdf:langString
s, e.g."Huber@de"
?
– Stanislav Kralin
Nov 11 at 13:50
did you tryFILTER ( str(?o) = "Huber" )
?
– AKSW
Nov 11 at 15:18
Or just with a possible language tag, i.e.?s person:name "Huber"@en
? I don't know your data
– AKSW
Nov 11 at 15:19
add a comment |
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I am working with C-SPARQL and I want to query triples received from a stream. However I encountered an issue when using a query in which I want to match an exact string literal. I usually get a result with my queries (data is coming from the string) but when I add a exact match for a string value for a literal, I always don't get any results. As if there is no match found. However if I look at all triples received from my stream there are entries that would match my string literal.
Here is an example of my query:
REGISTER QUERY LogStream AS
PREFIX person: <http://vocab/Person#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?s
FROM STREAM <ws://localhost:8124/tw/stream> [RANGE 5s STEP 1s]
WHERE {
?s person:name "Huber" .
}
I also tried working with filters and regex which are the following 2 examples:
REGISTER QUERY LogStream AS
PREFIX person: <http://vocab/Person#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?s ?o
FROM STREAM <ws://localhost:8124/tw/stream> [RANGE 5s STEP 1s]
WHERE {
?s person:name ?o FILTER ( ?o = "Huber" ) .
}
REGISTER QUERY LogStream AS
PREFIX person: <http://vocab/Person#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?s ?o
FROM STREAM <ws://localhost:8124/tw/stream> [RANGE 5s STEP 1s]
WHERE {
?s person:name ?o FILTER (regex(?o, '^Huber$')) .
}
None of the queries give my any results as if there are no matches.
If I just execute the following query, I get a lot of results with name = Huber:
REGISTER QUERY LogStream AS
PREFIX person: <http://vocab/Person#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?s ?o
FROM STREAM <ws://localhost:8124/tw/stream> [RANGE 5s STEP 1s]
WHERE {
?s person:name ?o .
}
I am not sure if C-SPARQL supports all features of SPARQL. I read in a different post that round() is not supported in C-SPARQL. Since the match of an exact String is a basic feature, at least in my opinion, I am not sure if I might do something wrong or if I miss some details.
I tried the queries in SPARQL, querying a triplestore, and there all queries work just fine.
So, I am a bit confused why the string match is not working here in C-SPARQL.
Does anyone has some hints or suggestions?
EDIT (further information about how my data looks like):
The data I am trying to query using C-SPARQL are JSON-LD entries coming from a Web stream. The stream is created and published via Triplewave.
Here would be a small example of a JSON-LD:
[
{
"@id": "http://Stream/d7e4e816-0931-42ce-a21a-cbfaa552855d",
"http://www.w3.org/ns/prov#generatedAtTime": [
{
"@value": "2018-11-14T07:08:45.182Z"
}
],
"@graph": [
{
"@id": "http://schema.org/Person#1234",
"http://schema.org/name": [
{
"@value": "Huber"
}
]
},
{
"@id": "http://schema.org/Job#1234",
"http://schema.org/title"": [
{
"@value": "Professor"
}
]
}
]
}
]
There is no type information or any language tag.
In order to query my web stream using C-SPARQL I implemented a RdfStream which receives the JSON-LD data via a websocket and created RdfQuadruple of all entries in my graph and puts it into the RdfStream.
An example of a RdfQuadruple is this:
http://schema.org/Person#1234 http://schema.org/name Huber .
stream sparql rdf semantic-web triples
I am working with C-SPARQL and I want to query triples received from a stream. However I encountered an issue when using a query in which I want to match an exact string literal. I usually get a result with my queries (data is coming from the string) but when I add a exact match for a string value for a literal, I always don't get any results. As if there is no match found. However if I look at all triples received from my stream there are entries that would match my string literal.
Here is an example of my query:
REGISTER QUERY LogStream AS
PREFIX person: <http://vocab/Person#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?s
FROM STREAM <ws://localhost:8124/tw/stream> [RANGE 5s STEP 1s]
WHERE {
?s person:name "Huber" .
}
I also tried working with filters and regex which are the following 2 examples:
REGISTER QUERY LogStream AS
PREFIX person: <http://vocab/Person#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?s ?o
FROM STREAM <ws://localhost:8124/tw/stream> [RANGE 5s STEP 1s]
WHERE {
?s person:name ?o FILTER ( ?o = "Huber" ) .
}
REGISTER QUERY LogStream AS
PREFIX person: <http://vocab/Person#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?s ?o
FROM STREAM <ws://localhost:8124/tw/stream> [RANGE 5s STEP 1s]
WHERE {
?s person:name ?o FILTER (regex(?o, '^Huber$')) .
}
None of the queries give my any results as if there are no matches.
If I just execute the following query, I get a lot of results with name = Huber:
REGISTER QUERY LogStream AS
PREFIX person: <http://vocab/Person#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?s ?o
FROM STREAM <ws://localhost:8124/tw/stream> [RANGE 5s STEP 1s]
WHERE {
?s person:name ?o .
}
I am not sure if C-SPARQL supports all features of SPARQL. I read in a different post that round() is not supported in C-SPARQL. Since the match of an exact String is a basic feature, at least in my opinion, I am not sure if I might do something wrong or if I miss some details.
I tried the queries in SPARQL, querying a triplestore, and there all queries work just fine.
So, I am a bit confused why the string match is not working here in C-SPARQL.
Does anyone has some hints or suggestions?
EDIT (further information about how my data looks like):
The data I am trying to query using C-SPARQL are JSON-LD entries coming from a Web stream. The stream is created and published via Triplewave.
Here would be a small example of a JSON-LD:
[
{
"@id": "http://Stream/d7e4e816-0931-42ce-a21a-cbfaa552855d",
"http://www.w3.org/ns/prov#generatedAtTime": [
{
"@value": "2018-11-14T07:08:45.182Z"
}
],
"@graph": [
{
"@id": "http://schema.org/Person#1234",
"http://schema.org/name": [
{
"@value": "Huber"
}
]
},
{
"@id": "http://schema.org/Job#1234",
"http://schema.org/title"": [
{
"@value": "Professor"
}
]
}
]
}
]
There is no type information or any language tag.
In order to query my web stream using C-SPARQL I implemented a RdfStream which receives the JSON-LD data via a websocket and created RdfQuadruple of all entries in my graph and puts it into the RdfStream.
An example of a RdfQuadruple is this:
http://schema.org/Person#1234 http://schema.org/name Huber .
stream sparql rdf semantic-web triples
stream sparql rdf semantic-web triples
edited Nov 14 at 7:36
asked Nov 11 at 12:45
Agnes Fröschl
217
217
Are you sure these literals are notrdf:langString
s, e.g."Huber@de"
?
– Stanislav Kralin
Nov 11 at 13:50
did you tryFILTER ( str(?o) = "Huber" )
?
– AKSW
Nov 11 at 15:18
Or just with a possible language tag, i.e.?s person:name "Huber"@en
? I don't know your data
– AKSW
Nov 11 at 15:19
add a comment |
Are you sure these literals are notrdf:langString
s, e.g."Huber@de"
?
– Stanislav Kralin
Nov 11 at 13:50
did you tryFILTER ( str(?o) = "Huber" )
?
– AKSW
Nov 11 at 15:18
Or just with a possible language tag, i.e.?s person:name "Huber"@en
? I don't know your data
– AKSW
Nov 11 at 15:19
Are you sure these literals are not
rdf:langString
s, e.g. "Huber@de"
?– Stanislav Kralin
Nov 11 at 13:50
Are you sure these literals are not
rdf:langString
s, e.g. "Huber@de"
?– Stanislav Kralin
Nov 11 at 13:50
did you try
FILTER ( str(?o) = "Huber" )
?– AKSW
Nov 11 at 15:18
did you try
FILTER ( str(?o) = "Huber" )
?– AKSW
Nov 11 at 15:18
Or just with a possible language tag, i.e.
?s person:name "Huber"@en
? I don't know your data– AKSW
Nov 11 at 15:19
Or just with a possible language tag, i.e.
?s person:name "Huber"@en
? I don't know your data– AKSW
Nov 11 at 15:19
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
The STR( value )
function solved my issue.
I have to convert the value to a string beforehand
So the following query worked:
REGISTER QUERY LogStream AS
PREFIX person: <http://vocab/Person#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?s ?o
FROM STREAM <ws://localhost:8124/tw/stream> [RANGE 5s STEP 1s]
WHERE {
?s person:name ?o FILTER ( str(?o) = "Huber" ) .
}
Thank you for your suggestions.
So what was the problem? Were these objectsxsd:string
s (and then it should be a bug)? Or were they strings with language tags (likeHuber
@en)? Or possibly URIs (like<Huber>
)?!
– Stanislav Kralin
Nov 11 at 18:00
@StanislavKralin Good question. That's why I also suggested two options, namelyFILTER(str(?o) = "Huber")
and?s person:name "Huber"@en
given that I don't know the data
– AKSW
Nov 12 at 7:23
1
I added some further explanation about by data in my initial post after "EDIT". I hope this clarifies your questions.
– Agnes Fröschl
Nov 14 at 7:37
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53248873%2fc-sparql-query-match-exact-string-literal%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
The STR( value )
function solved my issue.
I have to convert the value to a string beforehand
So the following query worked:
REGISTER QUERY LogStream AS
PREFIX person: <http://vocab/Person#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?s ?o
FROM STREAM <ws://localhost:8124/tw/stream> [RANGE 5s STEP 1s]
WHERE {
?s person:name ?o FILTER ( str(?o) = "Huber" ) .
}
Thank you for your suggestions.
So what was the problem? Were these objectsxsd:string
s (and then it should be a bug)? Or were they strings with language tags (likeHuber
@en)? Or possibly URIs (like<Huber>
)?!
– Stanislav Kralin
Nov 11 at 18:00
@StanislavKralin Good question. That's why I also suggested two options, namelyFILTER(str(?o) = "Huber")
and?s person:name "Huber"@en
given that I don't know the data
– AKSW
Nov 12 at 7:23
1
I added some further explanation about by data in my initial post after "EDIT". I hope this clarifies your questions.
– Agnes Fröschl
Nov 14 at 7:37
add a comment |
up vote
1
down vote
The STR( value )
function solved my issue.
I have to convert the value to a string beforehand
So the following query worked:
REGISTER QUERY LogStream AS
PREFIX person: <http://vocab/Person#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?s ?o
FROM STREAM <ws://localhost:8124/tw/stream> [RANGE 5s STEP 1s]
WHERE {
?s person:name ?o FILTER ( str(?o) = "Huber" ) .
}
Thank you for your suggestions.
So what was the problem? Were these objectsxsd:string
s (and then it should be a bug)? Or were they strings with language tags (likeHuber
@en)? Or possibly URIs (like<Huber>
)?!
– Stanislav Kralin
Nov 11 at 18:00
@StanislavKralin Good question. That's why I also suggested two options, namelyFILTER(str(?o) = "Huber")
and?s person:name "Huber"@en
given that I don't know the data
– AKSW
Nov 12 at 7:23
1
I added some further explanation about by data in my initial post after "EDIT". I hope this clarifies your questions.
– Agnes Fröschl
Nov 14 at 7:37
add a comment |
up vote
1
down vote
up vote
1
down vote
The STR( value )
function solved my issue.
I have to convert the value to a string beforehand
So the following query worked:
REGISTER QUERY LogStream AS
PREFIX person: <http://vocab/Person#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?s ?o
FROM STREAM <ws://localhost:8124/tw/stream> [RANGE 5s STEP 1s]
WHERE {
?s person:name ?o FILTER ( str(?o) = "Huber" ) .
}
Thank you for your suggestions.
The STR( value )
function solved my issue.
I have to convert the value to a string beforehand
So the following query worked:
REGISTER QUERY LogStream AS
PREFIX person: <http://vocab/Person#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?s ?o
FROM STREAM <ws://localhost:8124/tw/stream> [RANGE 5s STEP 1s]
WHERE {
?s person:name ?o FILTER ( str(?o) = "Huber" ) .
}
Thank you for your suggestions.
answered Nov 11 at 17:06
Agnes Fröschl
217
217
So what was the problem? Were these objectsxsd:string
s (and then it should be a bug)? Or were they strings with language tags (likeHuber
@en)? Or possibly URIs (like<Huber>
)?!
– Stanislav Kralin
Nov 11 at 18:00
@StanislavKralin Good question. That's why I also suggested two options, namelyFILTER(str(?o) = "Huber")
and?s person:name "Huber"@en
given that I don't know the data
– AKSW
Nov 12 at 7:23
1
I added some further explanation about by data in my initial post after "EDIT". I hope this clarifies your questions.
– Agnes Fröschl
Nov 14 at 7:37
add a comment |
So what was the problem? Were these objectsxsd:string
s (and then it should be a bug)? Or were they strings with language tags (likeHuber
@en)? Or possibly URIs (like<Huber>
)?!
– Stanislav Kralin
Nov 11 at 18:00
@StanislavKralin Good question. That's why I also suggested two options, namelyFILTER(str(?o) = "Huber")
and?s person:name "Huber"@en
given that I don't know the data
– AKSW
Nov 12 at 7:23
1
I added some further explanation about by data in my initial post after "EDIT". I hope this clarifies your questions.
– Agnes Fröschl
Nov 14 at 7:37
So what was the problem? Were these objects
xsd:string
s (and then it should be a bug)? Or were they strings with language tags (like Huber
@en)? Or possibly URIs (like <Huber>
)?!– Stanislav Kralin
Nov 11 at 18:00
So what was the problem? Were these objects
xsd:string
s (and then it should be a bug)? Or were they strings with language tags (like Huber
@en)? Or possibly URIs (like <Huber>
)?!– Stanislav Kralin
Nov 11 at 18:00
@StanislavKralin Good question. That's why I also suggested two options, namely
FILTER(str(?o) = "Huber")
and ?s person:name "Huber"@en
given that I don't know the data– AKSW
Nov 12 at 7:23
@StanislavKralin Good question. That's why I also suggested two options, namely
FILTER(str(?o) = "Huber")
and ?s person:name "Huber"@en
given that I don't know the data– AKSW
Nov 12 at 7:23
1
1
I added some further explanation about by data in my initial post after "EDIT". I hope this clarifies your questions.
– Agnes Fröschl
Nov 14 at 7:37
I added some further explanation about by data in my initial post after "EDIT". I hope this clarifies your questions.
– Agnes Fröschl
Nov 14 at 7:37
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53248873%2fc-sparql-query-match-exact-string-literal%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Are you sure these literals are not
rdf:langString
s, e.g."Huber@de"
?– Stanislav Kralin
Nov 11 at 13:50
did you try
FILTER ( str(?o) = "Huber" )
?– AKSW
Nov 11 at 15:18
Or just with a possible language tag, i.e.
?s person:name "Huber"@en
? I don't know your data– AKSW
Nov 11 at 15:19