Skip to content

Commit

Permalink
refactor(example): simpler member uri template
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Feb 11, 2025
1 parent 15bbfad commit 1dac8dc
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions example/resources/plaques.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,17 @@ prefix kl-hydra: <https://kopflos.described.at/hydra#>
(
"/plaque/"
[
sparql:concat
sparql:encode_for_uri
(
[
sparql:encode_for_uri
(
[
sparql:replace ( [ sparql:lcase ( [ sh:path schema:name ] ) ] " " "-" "g" )
]
)
]
"-"
[
sparql:substr ( [ sparql:struuid () ] 1 8 )
sparql:replace ( [ sparql:lcase ( [ sh:path schema:name ] ) ] " " "-" "g" )
]
)
]
"-"
[
sparql:substr ( [ sparql:struuid () ] 1 8 )
]
) ;
# TODO: load plaques from named graph
kl-hydra:memberCreateShape
Expand Down

0 comments on commit 1dac8dc

Please sign in to comment.