Removing contexts from Model #4849
Answered
by
hmottestad
naturzukunft
asked this question in
Q&A
-
Hi there, is there a way to removing the context in a model? |
Beta Was this translation helpful? Give feedback.
Answered by
hmottestad
Nov 18, 2023
Replies: 2 comments 1 reply
-
That is also possible:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
We actually have a method for stripping the context from an entire model: |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
hmottestad
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We actually have a method for stripping the context from an entire model:
Models.stripContexts(Model model, Resource... contexts)
https://rdf4j.org/javadoc/latest/org/eclipse/rdf4j/model/util/Models.html#stripContexts(org.eclipse.rdf4j.model.Model,org.eclipse.rdf4j.model.Resource...)