-
Notifications
You must be signed in to change notification settings - Fork 305
Description
Hi all,
I was unsuccessfully trying to HTTP PATCH a jsonld file. But the same patch works on a turtle file with the exact same RDF statements.
I have a .jsonld (see here) file with the following content:
{
"@context" : [ "https://uvdsl.solid.aifb.kit.edu/ontology/svcs-context" ],
"id" : "#status" ,
"type" : "svcs:CredentialStatusInformation" ,
"currentStatus" : "svcs:Revoked" ,
"statusReason" : "because"
}It holds the same RDF statements as the turtle file (see here), which I retrieved by simply requesting turtle instead of jsonld from the Pod:
@prefix : <#>.
@prefix cre: <https://purl.org/solid-vc/credentialStatus#>.
:status
a cre:CredentialStatusInformation;
cre:currentStatus cre:Revoked;
cre:statusReason "because".
Applying the following PATCH does work on the turtle, but not on the jsonld file:
@prefix solid: <http://www.w3.org/ns/solid/terms#>.
@prefix cre: <https://purl.org/solid-vc/credentialStatus#>.
_:rename a solid:InsertDeletePatch;
solid:deletes { <#status> cre:currentStatus cre:Revoked };
solid:inserts { <#status> cre:currentStatus cre:Issued }.For example, the curl command:
curl --request PATCH -d " @prefix solid: <http://www.w3.org/ns/solid/terms#>. @prefix cre: <https://purl.org/solid-vc/credentialStatus#>. _:rename a solid:InsertDeletePatch; solid:deletes { <#status> cre:currentStatus cre:Revoked }; solid:inserts { <#status> cre:currentStatus cre:Issued }." -H "Content-type:text/n3" https://uvdsl.solidweb.org/public/patchtest-jsonld.jsonld
yields
The patch could not be applied. Could not find to delete: <https://uvdsl.solidweb.org/public/patchtest-jsonld.jsonld#status> <https://purl.org/solid-vc/credentialStatus#currentStatus> <https://purl.org/solid-vc/credentialStatus#Revoked> .
Am I missing something? :/
Thank you very much for your help!
PS: Yes, I am aware of the fact that the statements to be deleted MUST be existent in the file, but that is not the issue here.