Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Overview

These examples are for a Fedora hands-on workshop and are referenced by these slides. All examples are displayed below in a curl command-line form. For those who do not have curl or prefer a graphical interface, the examples can be obtained as a JSON import file for the POSTMan REST client.

Get Pythagoras collection

Request URI: http://localhost:8080/rest/pythagoras

Method: GET

...

GET

...

Request

...

Request Headers:

Status
subtletrue
titleAccept
��application   application/ld+json, application/n-triples, application/rdf+xml, application/x-turtle, application/xhtml+xml, application/xml, text/html, text/n3, text/plain, text/rdf+n3, text/turtle

...

Status
subtletrue
colourGreen
title200
OK

...

GET Portrait Container

Request URI: http://localhost:8080/rest/pythagoras/portraits

Method: GET

...

Status
titleGET
get a list of registered types (as RDFS triples)

Request

Request Headers:

Status
subtletrue
titleAccept
��application/ld+json, application/n-triples, application/rdf+xml, application/x-turtle, application/xhtml+xml, application/xml, text/html, text/n3, text/plain, text/rdf+n3, text/turtle

...

Status
subtletrue
colourGreen
title200
OK

...

Add Pythagoras the Person

Request URI: http://localhost:8080/rest/pythagoras/

Method: POST

...

Status
titleGET
get a list of registered types (as RDFS triples)

Request

Request Headers:

Status
subtletrue
titleAccept
��application/ld+json, application/n-triples, application/rdf+xml, application/x-turtle, application/xhtml+xml, application/xml, text/html, text/n3, text/plain, text/rdf+n3, text/turtle

...

Status
subtletrue
colourGreen
title200
OK

...

POST Portrait Container

Request URI: http://localhost:8080/rest/pythagoras

Method: POST

...

Status
titleGET
get a list of registered types (as RDFS triples)

Request

Request Headers:

Status
subtletrue
titleAccept
��application/ld+json, application/n-triples, application/rdf+xml, application/x-turtle, application/xhtml+xml, application/xml, text/html, text/n3, text/plain, text/rdf+n3, text/turtle

...

Status
subtletrue
colourGreen
title200
OK

...

POST a Portrait

Request URI: http://localhost:8080/rest/pythagoras/portraits

Method: POST

...

Status
titleGET
get a list of registered types (as RDFS triples)

Request

Request Headers:

Status
subtletrue
titleAccept
��application/ld+json, application/n-triples, application/rdf+xml, application/x-turtle, application/xhtml+xml, application/xml, text/html, text/n3, text/plain, text/rdf+n3, text/turtle

...

Status
subtletrue
colourGreen
title200
OK

...

POST List of Pythagoras' Influences

Request URI: http://localhost:8080/rest/pythagoras/

Method: POST

...

Status
titleGET
get a list of registered types (as RDFS triples)

Request

Request Headers:

Status
subtletrue
titleAccept
��application/ld+json, application/n-triples, application/rdf+xml, application/x-turtle, application/xhtml+xml, application/xml, text/html, text/n3, text/plain, text/rdf+n3, text/turtle

...

Status
subtletrue
colourGreen
title200
OK

...

GET Pythagoras Person

Request URI: http://localhost:8080/rest/pythagoras/person

Method: GET

...

Status
titleGET
get a list of registered types (as RDFS triples)

Request

Request Headers:

Status
subtletrue
titleAccept
��application/ld+json, application/n-triples, application/rdf+xml, application/x-turtle, application/xhtml+xml, application/xml, text/html, text/n3, text/plain, text/rdf+n3, text/turtle

...

Status
subtletrue
colourGreen
title200
OK

...

Add Thales as Influence

Request URI: http://localhost:8080/rest/pythagoras/influences/

Method: POST

...

Status
titleGET
get a list of registered types (as RDFS triples)

Request

Request Headers:

Status
subtletrue
titleAccept
��application/ld+json, application/n-triples, application/rdf+xml, application/x-turtle, application/xhtml+xml, application/xml, text/html, text/n3, text/plain, text/rdf+n3, text/turtle

...