Skip to content

Commit 29d9324

Browse files
namedgraphclaude
andcommitted
Wrap auto-generated container block in ldh:Object
create-container.sh emitted rdf:_1 with an ldh:View directly under it when --block wasn't passed, which violates the ContentMode contract enforced by ldh:InvalidContentBlockType. Match the existing :ChildrenViewContructor (ldh.ttl:643) — wrap the View in an ldh:Object via rdf:value. For --mode use an inline View; otherwise reference the named ldh:ChildrenView to bit-match the constructor's output. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 744dfcb commit 29d9324

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

bin/create-container.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,12 @@ turtle+="<${target}> dct:title \"${title}\" .\n"
133133
if [ -n "$block" ] ; then
134134
turtle+="<${target}> rdf:_1 <${block}> .\n"
135135
else
136-
block_triples="a ldh:View ; spin:query ldh:SelectChildren"
137136
if [ -n "$mode" ] ; then
138-
block_triples+="; ac:mode <${mode}> "
137+
turtle+="@prefix ac: <https://w3id.org/atomgraph/client#> .\n"
138+
turtle+="<${target}> rdf:_1 [ a ldh:Object ; rdf:value [ a ldh:View ; spin:query ldh:SelectChildren ; ac:mode <${mode}> ] ] .\n"
139+
else
140+
turtle+="<${target}> rdf:_1 [ a ldh:Object ; rdf:value ldh:ChildrenView ] .\n"
139141
fi
140-
turtle+="@prefix ac: <https://w3id.org/atomgraph/client#> .\n"
141-
turtle+="<${target}> rdf:_1 [ ${block_triples} ] .\n"
142142
fi
143143

144144
if [ -n "$description" ] ; then

0 commit comments

Comments
 (0)