rmlio/solid-ocp-transformer

By rmlio

Updated 9 months ago

Image
0

366

rmlio/solid-ocp-transformer repository overview

The solid-ocp-transformer image completes the following process steps:

  • generate RDF data;
  • split the RDF data into required subsets;
  • add a Verifiable Credential (VC) to the RDF subsets;
  • put the RDF subsets as resources on the Solid Pod;
  • add access rules to resources on the Solid Pod; and
  • delete any obsolete resources from previous process executions.

It takes as input a YARRRML file extended with an index and optional index query per authentication.

docker run --rm -v $(pwd)/data:/runtime/data \
rmlio/solid-ocp-transformer:latest -m mapping.yml

Below an example of such extended authentications in a YARRRML file.

targets:  
  # (omitted)
authentications:
  auth1:
    type: cssclientcredentials
    username: [email protected]
    password: user1
    oidcIssuer: https://examplesolidserver.com/
    webId: https://examplesolidserver.com/user1/profile/card#me
    index: https://examplesolidserver.com/user1/mydata/index
    indexQuery: 'SELECT ?resource WHERE {?s <http://example.org/hasSource> ?resource .}'    
  auth2:
    type: cssclientcredentials
    username: [email protected]
    password: user2
    oidcIssuer: https://examplesolidserver.com/
    webId: https://examplesolidserver.com/user2/profile/card#me
    index: https://examplesolidserver.com/user2/index
mappings:
  # (omitted)

The index provides an overview of all solid resources targeted by the mapping process. The mapping of its content should be included in the YARRRML file.
The index query is applied on the index to retrieve the list of targeted resources. The default index query is:

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?dataResource
WHERE {
  ?s rdfs:seeAlso ?dataResource .
}

Tag summary

Content type

Image

Digest

sha256:0f6590303

Size

359.5 MB

Last updated

9 months ago

docker pull rmlio/solid-ocp-transformer:v0.2.3