...
Code Block | ||||
---|---|---|---|---|
| ||||
echo 'insert data { <http://localhost:8080/rest/objects/obj1> <http://fedora.info/definitions/v4some-vocabulary.org/rels-ext#isMemberOfCollection> <http://localhost:8080/rest/objects/col1> . }' | curl -X PATCH --upload-file - http://localhost:8080/rest/objects/obj1 echo 'insert data { <http://localhost:8080/rest/objects/obj2> <http://fedorasome-vocabulary.infoorg/definitions/v4/rels-ext#isMemberOfCollection> <http://localhost:8080/rest/objects/col2> . }' | curl -X PATCH --upload-file - http://localhost:8080/rest/objects/obj2 echo 'insert data { <http://localhost:8080/rest/objects/obj3> <http://fedora.info/definitions/v4/some-vocabulary.org/rels-ext#isMemberOfCollection> <http://localhost:8080/rest/objects/col3> . }' | curl -X PATCH --upload-file - http://localhost:8080/rest/objects/obj3 |
...
Code Block | ||||
---|---|---|---|---|
| ||||
echo 'insert data { <http://localhost:8080/rest/objects/col1> <http://fedora.info/definitions/v4/some-vocabulary.org/rels-ext#hasPart> <http://localhost:8080/rest/objects/col2> . }' | curl -X PATCH --upload-file - http://localhost:8080/rest/objects/col1 echo 'insert data { <http://localhost:8080/rest/objects/col2> <http://fedora.info/definitions/v4some-vocabulary.org/rels-ext#hasPart> <http://localhost:8080/rest/objects/col3> . }' | curl -X PATCH --upload-file - http://localhost:8080/rest/objects/col2 |
...
Code Block | ||||
---|---|---|---|---|
| ||||
select ?obj ?col where { ?obj <http://fedorasome-vocabulary.infoorg/definitions/v4/rels-ext#isMemberOfCollection> ?col } |
...
Code Block | ||||
---|---|---|---|---|
| ||||
prefix rels: <http://fedorasome-vocabulary.infoorg/definitions/v4/rels-ext#> select ?obj where { <http://localhost:8080/rest/objects/col1> rels:hasPart* ?col . ?obj rels:isMemberOfCollection ?col } |
...
Code Block | ||||
---|---|---|---|---|
| ||||
prefix rels: <http://fedora.info/definitions/v4some-vocabulary.org/rels-ext#> prefix ex: <http://example.org/> select ?obj where { { ?obj ex:project <http://localhost:8080/rest/objects/proj1> } UNION { ?obj rels:isMemberOfCollection <http://localhost:8080/rest/objects/col2> } } |
...
Code Block | ||||
---|---|---|---|---|
| ||||
prefix rels: <http://fedora.info/definitions/v4some-vocabulary.org/rels-ext#> prefix ex: <http://example.org/> select (count(distinct ?obj) as ?count) where { { ?obj ex:project <http://localhost:8080/rest/objects/proj1> } UNION { ?obj rels:isMemberOfCollection <http://localhost:8080/rest/objects/col2> } } |
...