Skip to content

Instantly share code, notes, and snippets.

@tpluscode
Created December 9, 2021 16:34
Show Gist options
  • Save tpluscode/ce9ed8eb2178904e58edf1dae8bae123 to your computer and use it in GitHub Desktop.
Save tpluscode/ce9ed8eb2178904e58edf1dae8bae123 to your computer and use it in GitHub Desktop.
SHACL Compound properties
<data-file>
a schema:MediaObject ;
schema:identifier "sample-data.csv" ;
schema:encodingFormat "text/csv";
schema:contenUrl <https://s3.link/ugly-guid-link-whatever.csv>
.
<>
sh:targetClass schema:MediaObject ;
sh:property
[
schema:identifier "fileName" ;
sh:path schema:identifier ;
] ,
[
schema:identifier "mediaType" ;
sh:path schema:encodingFormat ;
dash:hidden true ;
] ,
[
schema:identifier "href" ;
sh:path schema:contenUrl ;
dash:hidden true ;
] ,
[
a dashing:CompoundProperty ;
dashing:module </render-download-link.js>
];
.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment