Backlinks
Grant public access and ship it
So far only the owner's WebID certificate can see the app. Access is governed by ACL authorizations — documents in the admin app, like everything else. Publishing means creating one authorization: read access on the whole dataspace for all agents.
Create the authorization with the access control forms in the admin dataspace — see
the ACL reference for
the authorization model: who (agents, agent classes), what (documents, document classes),
and which acl:mode.
ldh admin make-public
The command extends the admin dataspace's acl/authorizations/public/ document: the built-in Public access authorization gains its access grants. A second
authorization, for queries sent with POST, gets a document of its own, acl/authorizations/public-sparql/. Authorizations are data, so you can
inspect what the command wrote — and delete it to unpublish:
@prefix acl: <http://www.w3.org/ns/auth/acl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix nfo: <http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
<#this> a acl:Authorization ;
rdfs:label "Public access" ;
acl:mode acl:Read ;
acl:agentClass foaf:Agent, # matches unauthenticated requests
acl:AuthenticatedAgent ; # matches authenticated ones
acl:accessTo <https://localhost:4443/>, <https://localhost:4443/sparql> ;
acl:default <https://localhost:4443/> ; # every document below the root
acl:accessToClass nfo:FileDataObject . # file uploads# acl/authorizations/public-sparql/
<#this> a acl:Authorization ; # allows queries over POST
rdfs:label "Public SPARQL queries over POST" ;
acl:mode acl:Append ;
acl:agentClass foaf:Agent, acl:AuthenticatedAgent ;
acl:accessTo <https://localhost:4443/sparql> .The first authorization grants acl:Read on the root, on every document below it through acl:default, on file uploads and on the
SPARQL endpoint; the second additionally allows POSTed queries. Running the command again writes the same grants.
What you now see¶
Open the base URL in a private browser window, with no certificate: the Northwind Traders app renders, charts and all. It is now a public Linked Data dataset and a public web application — the same URLs serve both, negotiated by content type.
How this works¶
- Access control — agents, groups, authorizations and access modes
Next: App as a repository