« UDC, Epeople, OCR, Crawler issues | Main | items in DSAPCE with in_archive =f and withdrawn = f »

Varios curls for fedora RDF (REST interface)

List of datastreams in a Fedora Object

curl example

curl --user user:password http://128.101.146.59:8080/fedora/objects/urepository:97023/datastreams

browser example

http://128.101.146.59:8080/fedora/objects/urepository:97023/datastreams

MODs Datastream

curl example

curl --user user:password http://128.101.146.59:8080/fedora/objects/urepository:97023/datastreams/MODS/content

browser example

http://128.101.146.59:8080/fedora/objects/urepository:97023/datastreams/MODS/contentss

RDF Datastream

curl example

curl --user user:password http://128.101.146.59:8080/fedora/objects/urepository:97023/datastreams/RELS-EXT/content

browser example

http://128.101.146.59:8080/fedora/objects/urepository:97023/datastreams/RELS-EXT/content

Get all triples

curl example

curl --user user:password http://128.101.146.59:8080/fedora/risearch?type=triples\&lang=spo\&format=N-Triples\&stream=on\&query=*+*+*

browser example

http://128.101.146.59:8080/fedora/risearch?type=triples&lang=spo&format=N-Triples&stream=on&query=*+*+*

All triples with 36284 handle as a predicate

curl example

curl --user user:password http://128.101.146.59:8080/fedora/risearch?type=triples\&lang=spo\&format=N-Triples\&stream=on\&query=*+*+\<info:fedora/urepository:36284\>

browser example

http://128.101.146.59:8080/fedora/risearch?type=triples&lang=spo&format=N-Triples&stream=on&query=*+*+<info:fedora/urepository:36284>

All triples with 36284 handle as a subject

curl example

curl --user user:password http://128.101.146.59:8080/fedora/risearch?type=triples\&lang=spo\&format=N-Triples\&stream=on\&query=\<info:fedora/urepository:36284\>+*+*

browser example

http://128.101.146.59:8080/fedora/risearch?type=triples&lang=spo&format=N-Triples&stream=on&query=<info:fedora/urepository:36284>+*+*

Determine if 36284 is a collection

curl example

curl --user user:password http://128.101.146.59:8080/fedora/risearch?type=triples\&lang=spo\&format=N-Triples\&stream=on\&query=*+\<info:fedora/fedora-system:def/relations-external#isMemberOfCollection\>+\<info:fedora/urepository:36284\>

Find the title of 36284

curl --user user:password http://128.101.146.59:8080/fedora/risearch?type=triples\&lang=spo\&format=n-triples\&stream=on\&query=\<info:fedora/urepository:36284\>+\<http://purl.org/dc/elements/1.1/title\>+*

Comments

You, my pal, ROCK! I found just the information I already searched all over the place and just couldn't locate it. What a great web site.

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)