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

Allow hashes in URIs #1253

Closed
srosset81 opened this issue May 22, 2024 · 1 comment
Closed

Allow hashes in URIs #1253

srosset81 opened this issue May 22, 2024 · 1 comment

Comments

@srosset81
Copy link
Contributor

Resources are supposed to be identifiable with hashes (like https://mypod.store/alice#me), but SemApps never supported that until now.

To support it, we would need to adapt the ldp.resource.get action to look for hash resources sharing the same main URI. If a hash resource is found, we would need to display it like this in Turtle:

<https://srosset.inrupt.net/profile/card>
  a foaf:PersonalProfileDocument;
  foaf:maker <https://srosset.inrupt.net/profile/card#me>; 
  foaf:primaryTopic <https://srosset.inrupt.net/profile/card#me>.

<https://srosset.inrupt.net/profile/card#me>
    a schema:Person, foaf:Person;
    foaf:name "Sébastien".

And like this in JSON-LD:

{
	"@context": { },
	"@graph": [
		{
			"@id": "https://srosset.inrupt.net/profile/card",
			"@type": "foaf:PersonalProfileDocument",
			"foaf:maker": {
				"@id": "https://srosset.inrupt.net/profile/card#me"
			},
			"foaf:primaryTopic": {
				"@id": "https://srosset.inrupt.net/profile/card#me"
			}
		},
		{
			"@id": "https://srosset.inrupt.net/profile/card#me",
			"@type": [
				"schema:Person",
				"foaf:Person"
			],
			"foaf:name": "Sébastien"
		}
	]
}

WAC permissions are applied for the whole resource.

Left issues

  • Will this work with the Fuseki WAC extension ? @nikoPLP
  • Will this work with the WAC Moleculer service, notably the webacl.resource.hasRight action ?
  • How do we need to adapt the POST/PATCH/PUT actions ?
@srosset81 srosset81 changed the title Allow hashes in URI Allow hashes in URIs May 22, 2024
@srosset81
Copy link
Contributor Author

Closing as #1265 will solve this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant