Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rdf2sparql: implement filter function #19

Closed
mkotoff opened this issue Nov 23, 2022 · 1 comment
Closed

rdf2sparql: implement filter function #19

mkotoff opened this issue Nov 23, 2022 · 1 comment

Comments

@mkotoff
Copy link

mkotoff commented Nov 23, 2022

In the automated generated query from ttl we need filter by string, but in the current version it's no possible because it's add variable name in the SPARQL if make filter macro.

Can you please handle it

@VladimirAlexiev
Copy link
Owner

Ok, it'll look something like this:

<content_id> a s:WebPage;
  puml:filter "?status='published'";
  s:name "(title)";

and will modify the SPARQL query like this:

CONSTRUCT/INSERT {
  ?content_id_URL s:name ?title
} WHERE {
  service <refine> {
    ...
    bind(iri(?content_id) as ?content_id_URL)
    filter(?status='published') ### here
  }
}

@VladimirAlexiev VladimirAlexiev changed the title Implement filter function rdf2sparql: implement filter function Dec 7, 2022
VladimirAlexiev added a commit that referenced this issue Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants