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
Only accept named nodes as predicates for metadata #466
Comments
Check; I was wondering about that when I went through the code indeed. The only exception are the shorthands though, what do we do with |
Would have to look at how to specifically do the change, but we can potentially just have an exception for those in the |
It seems like every usage of Every usage of
|
As a start I went ahead and moved Is the desired goal to change all calls to effectively use a NamedNode or is this impossible/cumbersome in some cases? Right now I am going through the Any ideas where to best start? |
I think the
The first. This should always be possible. If some classes take a string as input (which will be the case for some constructors probably), it would then be their responsibility to convert the string to a named node. The one issue/exception is the
Remove |
I have already done so for remove operations and all seems to be working (after changing some calls with strings to NamedNodes), I'll open a draft PR asap and continue work on this there. Since I am changing function parameter types, this will be a |
Yes, definitely. |
Done in #1261 |
Following ae06e99 I think we can remove the
toCachedNamedNode
function completely. Only theRepresentationMetadata
uses it but in practice I think it already receives named nodes most of the time, so we can also change the interface there and always do the call with the.terms
uris then.The text was updated successfully, but these errors were encountered: