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

Functions with container membership properties #78

Closed
enridaga opened this issue Aug 25, 2021 · 3 comments
Closed

Functions with container membership properties #78

enridaga opened this issue Aug 25, 2021 · 3 comments

Comments

@enridaga
Copy link
Member

Useful functions are:

  • previous(rdf:_2) -> rdf:_1
  • next(rdf:_2) -> rdf:_3
  • before(rdf:_1,rdf:_10) -> true
  • after(rdf:_10,rdf:_1) -> true
@enridaga
Copy link
Member Author

Others:

  • forward(rdf:_2, 3) -> rdf:_5
  • backward(rdf:_5, 3) -> rdf:_2

@justin2004
Copy link
Contributor

nice.

yeah, you could do math on the slot number but that is tedious:
bind(xsd:integer(replace(str(?p),str(rdf:_),"")) as ?p_num)

@enridaga
Copy link
Member Author

That's completed. If anybody thinks about another one, they can open a new issue.

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