-
-
Save alien-mcl/bbe031342ed64e9a1e89 to your computer and use it in GitHub Desktop.
JSON-LD Hydra API description
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@graph": [ | |
{ | |
"@id": "http://localhost:51509/person?format=jsonld/#", | |
"@type": ["http://www.w3.org/ns/hydra/core#ApiDocumentation"], | |
"http://www.w3.org/ns/hydra/core#supportedClasses": { | |
"@id": "http://temp.uri/test" | |
} | |
}, | |
{ | |
"@id": "http://temp.uri/test", | |
"@type": [ | |
"http://www.w3.org/ns/hydra/core#Class", | |
"http://www.w3.org/2000/01/rdf-schema#Resource", | |
"http://www.w3.org/ns/hydra/core#Resource", | |
"http://www.w3.org/2000/01/rdf-schema#Class" | |
], | |
"http://www.w3.org/2000/01/rdf-schema#comment": { | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "Describes a person." | |
}, | |
"http://www.w3.org/2000/01/rdf-schema#label": { | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "Person" | |
} | |
} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@graph": [ | |
{ | |
"@id": "http://localhost:51509/person?format=jsonld/#", | |
"@type": "hydra:ApiDocumentation", | |
"supportedClasses": { | |
"@id": "urn:net:URSA.Example.WebApplication.Data.Person" | |
} | |
}, | |
{ | |
"@id": "_:magi1", | |
"@type": [ | |
"hydra:Resource", | |
"rdfs:Resource" | |
], | |
"http://github.io/ursa/vocabulary#resourceType": { | |
"@id": "urn:net:URSA.Example.WebApplication.Data.Person" | |
}, | |
"http://github.io/ursa/vocabulary#singleValue": true | |
}, | |
{ | |
"@id": "urn:net:URSA.Example.WebApplication.Data.Person", | |
"@type": [ | |
"hydra:Class", | |
"rdfs:Resource", | |
"hydra:Resource", | |
"rdfs:Class" | |
], | |
"http://localhost:51509/person/DELETEId#withTemplate": { | |
"@id": "http://localhost:51509/person/DELETEId#template" | |
}, | |
"http://localhost:51509/person/GETId#withTemplate": { | |
"@id": "http://localhost:51509/person/GETId#template" | |
}, | |
"http://localhost:51509/person/GETSkipAndTake#withTemplate": { | |
"@id": "http://localhost:51509/person/GETSkipAndTake#template" | |
}, | |
"http://localhost:51509/person/PUTIdAndPerson#withTemplate": { | |
"@id": "http://localhost:51509/person/PUTIdAndPerson#template" | |
}, | |
"http://localhost:51509/person/roles/POSTIdAndRoles#withTemplate": { | |
"@id": "http://localhost:51509/person/roles/POSTIdAndRoles#template" | |
}, | |
"comment": { | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "Describes a person." | |
}, | |
"label": { | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "Person" | |
}, | |
"subClassOf": [ | |
{ | |
"@id": "_:magi5" | |
}, | |
{ | |
"@id": "_:magi3" | |
}, | |
{ | |
"@id": "_:magi6" | |
} | |
], | |
"supportedOperation": { | |
"@id": "http://localhost:51509/person/#POSTPerson" | |
}, | |
"supportedProperties": [ | |
{ | |
"@id": "urn:hydra:URSA.Example.WebApplication.Data.Person.Firstname" | |
}, | |
{ | |
"@id": "urn:hydra:URSA.Example.WebApplication.Data.Person.Lastname" | |
}, | |
{ | |
"@id": "urn:hydra:URSA.Example.WebApplication.Data.Person.Id" | |
}, | |
{ | |
"@id": "urn:hydra:URSA.Example.WebApplication.Data.Person.Roles" | |
} | |
] | |
}, | |
{ | |
"@id": "urn:hydra:URSA.Example.WebApplication.Data.Person.Id", | |
"@type": "hydra:SupportedProperty", | |
"property": { | |
"@id": "urn:net:URSA.Example.WebApplication.Data.Person.Id" | |
}, | |
"readonly": false, | |
"required": true, | |
"writeonly": false | |
}, | |
{ | |
"@id": "urn:net:URSA.Example.WebApplication.Data.Person.Id", | |
"@type": [ | |
"http://www.w3.org/2002/07/owl#InverseFunctionalProperty", | |
"rdfs:Resource", | |
"http://www.w3.org/1999/02/22-rdf-syntax-ns#Property" | |
], | |
"comment": { | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "Gets or sets the person's identifier." | |
}, | |
"domain": { | |
"@id": "urn:net:URSA.Example.WebApplication.Data.Person" | |
}, | |
"label": { | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "Id" | |
}, | |
"range": { | |
"@id": "http://openguid.net/rdf#guid" | |
} | |
}, | |
{ | |
"@id": "_:magi2", | |
"@type": [ | |
"hydra:Resource", | |
"rdfs:Resource" | |
], | |
"http://github.io/ursa/vocabulary#resourceType": { | |
"@id": "http://openguid.net/rdf#guid" | |
}, | |
"http://github.io/ursa/vocabulary#singleValue": true | |
}, | |
{ | |
"@id": "http://openguid.net/rdf#guid", | |
"@type": [ | |
"rdfs:Resource", | |
"hydra:Resource" | |
], | |
"label": { | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "guid" | |
} | |
}, | |
{ | |
"@id": "_:magi3", | |
"@type": [ | |
"http://www.w3.org/2002/07/owl#Restriction", | |
"rdfs:Resource", | |
"rdfs:Class", | |
"http://www.w3.org/2002/07/owl#Class" | |
], | |
"http://www.w3.org/2002/07/owl#maxCardinality": { | |
"@type": "http://www.w3.org/2001/XMLSchema#unsignedInt", | |
"@value": "1" | |
}, | |
"http://www.w3.org/2002/07/owl#onProperty": { | |
"@id": "urn:net:URSA.Example.WebApplication.Data.Person.Id" | |
} | |
}, | |
{ | |
"@id": "urn:hydra:URSA.Example.WebApplication.Data.Person.Firstname", | |
"@type": "hydra:SupportedProperty", | |
"property": { | |
"@id": "urn:net:URSA.Example.WebApplication.Data.Person.Firstname" | |
}, | |
"readonly": false, | |
"required": false, | |
"writeonly": false | |
}, | |
{ | |
"@id": "urn:net:URSA.Example.WebApplication.Data.Person.Firstname", | |
"@type": [ | |
"http://www.w3.org/1999/02/22-rdf-syntax-ns#Property", | |
"rdfs:Resource" | |
], | |
"comment": { | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "Gets or sets the person's firstname." | |
}, | |
"domain": { | |
"@id": "urn:net:URSA.Example.WebApplication.Data.Person" | |
}, | |
"label": { | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "Firstname" | |
}, | |
"range": { | |
"@id": "http://www.w3.org/2001/XMLSchema#string" | |
} | |
}, | |
{ | |
"@id": "_:magi4", | |
"@type": [ | |
"hydra:Resource", | |
"rdfs:Resource" | |
], | |
"http://github.io/ursa/vocabulary#resourceType": { | |
"@id": "http://www.w3.org/2001/XMLSchema#string" | |
}, | |
"http://github.io/ursa/vocabulary#singleValue": true | |
}, | |
{ | |
"@id": "http://www.w3.org/2001/XMLSchema#string", | |
"@type": [ | |
"hydra:Resource", | |
"rdfs:Resource" | |
], | |
"label": { | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "string" | |
} | |
}, | |
{ | |
"@id": "_:magi5", | |
"@type": [ | |
"http://www.w3.org/2002/07/owl#Restriction", | |
"rdfs:Resource", | |
"rdfs:Class", | |
"http://www.w3.org/2002/07/owl#Class" | |
], | |
"http://www.w3.org/2002/07/owl#maxCardinality": { | |
"@type": "http://www.w3.org/2001/XMLSchema#unsignedInt", | |
"@value": "1" | |
}, | |
"http://www.w3.org/2002/07/owl#onProperty": { | |
"@id": "urn:net:URSA.Example.WebApplication.Data.Person.Firstname" | |
} | |
}, | |
{ | |
"@id": "urn:hydra:URSA.Example.WebApplication.Data.Person.Lastname", | |
"@type": "hydra:SupportedProperty", | |
"property": { | |
"@id": "urn:net:URSA.Example.WebApplication.Data.Person.Lastname" | |
}, | |
"readonly": false, | |
"required": false, | |
"writeonly": false | |
}, | |
{ | |
"@id": "urn:net:URSA.Example.WebApplication.Data.Person.Lastname", | |
"@type": [ | |
"http://www.w3.org/1999/02/22-rdf-syntax-ns#Property", | |
"rdfs:Resource" | |
], | |
"comment": { | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "Gets or sets the person's lastname." | |
}, | |
"domain": { | |
"@id": "urn:net:URSA.Example.WebApplication.Data.Person" | |
}, | |
"label": { | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "Lastname" | |
}, | |
"range": { | |
"@id": "http://www.w3.org/2001/XMLSchema#string" | |
} | |
}, | |
{ | |
"@id": "_:magi6", | |
"@type": [ | |
"http://www.w3.org/2002/07/owl#Restriction", | |
"rdfs:Resource", | |
"rdfs:Class", | |
"http://www.w3.org/2002/07/owl#Class" | |
], | |
"http://www.w3.org/2002/07/owl#maxCardinality": { | |
"@type": "http://www.w3.org/2001/XMLSchema#unsignedInt", | |
"@value": "1" | |
}, | |
"http://www.w3.org/2002/07/owl#onProperty": { | |
"@id": "urn:net:URSA.Example.WebApplication.Data.Person.Lastname" | |
} | |
}, | |
{ | |
"@id": "urn:hydra:URSA.Example.WebApplication.Data.Person.Roles", | |
"@type": "hydra:SupportedProperty", | |
"property": { | |
"@id": "urn:net:URSA.Example.WebApplication.Data.Person.Roles" | |
}, | |
"readonly": false, | |
"required": false, | |
"writeonly": false | |
}, | |
{ | |
"@id": "urn:net:URSA.Example.WebApplication.Data.Person.Roles", | |
"@type": [ | |
"http://www.w3.org/1999/02/22-rdf-syntax-ns#Property", | |
"rdfs:Resource" | |
], | |
"comment": { | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "Gets or sets the person's roles." | |
}, | |
"domain": { | |
"@id": "urn:net:URSA.Example.WebApplication.Data.Person" | |
}, | |
"label": { | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "Roles" | |
}, | |
"range": { | |
"@id": "http://www.w3.org/2001/XMLSchema#string" | |
} | |
}, | |
{ | |
"@id": "_:magi7", | |
"@type": [ | |
"hydra:Resource", | |
"rdfs:Resource" | |
], | |
"http://github.io/ursa/vocabulary#resourceType": { | |
"@id": "http://www.w3.org/2001/XMLSchema#string" | |
}, | |
"http://github.io/ursa/vocabulary#singleValue": false | |
}, | |
{ | |
"@id": "http://localhost:51509/person/#GETSkipAndTake", | |
"@type": [ | |
"hydra:Operation", | |
"rdfs:Resource", | |
"hydra:Resource" | |
], | |
"comment": { | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "Gets all persons." | |
}, | |
"label": { | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "List" | |
}, | |
"method": { | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "GET" | |
}, | |
"returns": { | |
"@id": "_:magi10" | |
} | |
}, | |
{ | |
"@id": "http://localhost:51509/person/GETSkipAndTake/template#skip", | |
"@type": [ | |
"hydra:Class", | |
"rdfs:Class", | |
"hydra:Resource", | |
"rdfs:Resource", | |
"hydra:IriTemplateMapping" | |
], | |
"http://github.io/ursa/vocabulary#singleValue": true, | |
"required": true, | |
"variable": { | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "skip" | |
} | |
}, | |
{ | |
"@id": "_:magi8", | |
"@type": [ | |
"hydra:Resource", | |
"rdfs:Resource" | |
], | |
"http://github.io/ursa/vocabulary#resourceType": { | |
"@id": "http://www.w3.org/2001/XMLSchema#int" | |
}, | |
"http://github.io/ursa/vocabulary#singleValue": true | |
}, | |
{ | |
"@id": "http://www.w3.org/2001/XMLSchema#int", | |
"@type": [ | |
"rdfs:Resource", | |
"hydra:Resource" | |
], | |
"label": { | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "int" | |
} | |
}, | |
{ | |
"@id": "http://localhost:51509/person/GETSkipAndTake#template", | |
"@type": [ | |
"hydra:IriTemplate", | |
"rdfs:Resource", | |
"hydra:Resource", | |
"rdfs:Class", | |
"hydra:Class" | |
], | |
"mapping": [ | |
{ | |
"@id": "http://localhost:51509/person/GETSkipAndTake/template#skip" | |
}, | |
{ | |
"@id": "http://localhost:51509/person/GETSkipAndTake/template#take" | |
} | |
], | |
"template": { | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "/person?skip={?skip}&take={?take}" | |
} | |
}, | |
{ | |
"@id": "http://localhost:51509/person/GETSkipAndTake/template#take", | |
"@type": [ | |
"hydra:Class", | |
"rdfs:Class", | |
"hydra:Resource", | |
"rdfs:Resource", | |
"hydra:IriTemplateMapping" | |
], | |
"http://github.io/ursa/vocabulary#singleValue": true, | |
"required": true, | |
"variable": { | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "take" | |
} | |
}, | |
{ | |
"@id": "_:magi9", | |
"@type": [ | |
"hydra:Resource", | |
"rdfs:Resource" | |
], | |
"http://github.io/ursa/vocabulary#resourceType": { | |
"@id": "http://www.w3.org/2001/XMLSchema#int" | |
}, | |
"http://github.io/ursa/vocabulary#singleValue": true | |
}, | |
{ | |
"@id": "_:magi10", | |
"@type": [ | |
"hydra:Resource", | |
"rdfs:Resource" | |
], | |
"http://github.io/ursa/vocabulary#mediaType": [ | |
{ | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "application/xml" | |
}, | |
{ | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "application/json" | |
}, | |
{ | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "text/xml" | |
} | |
], | |
"http://github.io/ursa/vocabulary#resourceType": { | |
"@id": "urn:net:URSA.Example.WebApplication.Data.Person" | |
}, | |
"http://github.io/ursa/vocabulary#singleValue": false | |
}, | |
{ | |
"@id": "http://localhost:51509/person/GETSkipAndTake#withTemplate", | |
"@type": [ | |
"hydra:TemplatedLink", | |
"rdfs:Resource", | |
"hydra:Resource", | |
"http://www.w3.org/1999/02/22-rdf-syntax-ns#Property" | |
], | |
"operation": { | |
"@id": "http://localhost:51509/person/#GETSkipAndTake" | |
} | |
}, | |
{ | |
"@id": "http://localhost:51509/person/#GETId", | |
"@type": [ | |
"hydra:Operation", | |
"rdfs:Resource", | |
"hydra:Resource" | |
], | |
"comment": { | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "Gets the person with identifier of id." | |
}, | |
"label": { | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "Get" | |
}, | |
"method": { | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "GET" | |
}, | |
"returns": { | |
"@id": "_:magi11" | |
} | |
}, | |
{ | |
"@id": "http://localhost:51509/person/GETId/template#id", | |
"@type": [ | |
"hydra:IriTemplateMapping", | |
"rdfs:Resource", | |
"hydra:Resource", | |
"rdfs:Class", | |
"hydra:Class" | |
], | |
"property": { | |
"@id": "urn:net:URSA.Example.WebApplication.Data.Person.Id" | |
}, | |
"required": true, | |
"variable": { | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "id" | |
} | |
}, | |
{ | |
"@id": "http://localhost:51509/person/GETId#template", | |
"@type": [ | |
"hydra:IriTemplate", | |
"rdfs:Resource", | |
"hydra:Resource", | |
"rdfs:Class", | |
"hydra:Class" | |
], | |
"mapping": { | |
"@id": "http://localhost:51509/person/GETId/template#id" | |
}, | |
"template": { | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "/person/id/{?id}" | |
} | |
}, | |
{ | |
"@id": "_:magi11", | |
"@type": [ | |
"rdfs:Resource", | |
"hydra:Resource" | |
], | |
"http://github.io/ursa/vocabulary#mediaType": [ | |
{ | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "application/xml" | |
}, | |
{ | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "application/json" | |
}, | |
{ | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "text/xml" | |
} | |
], | |
"http://github.io/ursa/vocabulary#resourceType": { | |
"@id": "urn:net:URSA.Example.WebApplication.Data.Person" | |
}, | |
"http://github.io/ursa/vocabulary#singleValue": true | |
}, | |
{ | |
"@id": "http://localhost:51509/person/GETId#withTemplate", | |
"@type": [ | |
"hydra:TemplatedLink", | |
"rdfs:Resource", | |
"hydra:Resource", | |
"http://www.w3.org/1999/02/22-rdf-syntax-ns#Property" | |
], | |
"operation": { | |
"@id": "http://localhost:51509/person/#GETId" | |
} | |
}, | |
{ | |
"@id": "http://localhost:51509/person/#POSTPerson", | |
"@type": [ | |
"hydra:CreateResourceOperation", | |
"rdfs:Resource", | |
"hydra:Resource", | |
"hydra:Operation" | |
], | |
"comment": { | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "Creates the specified person." | |
}, | |
"label": { | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "Create" | |
}, | |
"expects": { | |
"@id": "_:magi12" | |
}, | |
"method": { | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "POST" | |
}, | |
"returns": { | |
"@id": "_:magi13" | |
} | |
}, | |
{ | |
"@id": "_:magi12", | |
"@type": [ | |
"rdfs:Resource", | |
"hydra:Resource" | |
], | |
"http://github.io/ursa/vocabulary#mediaType": [ | |
{ | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "application/xml" | |
}, | |
{ | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "application/json" | |
}, | |
{ | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "text/xml" | |
} | |
], | |
"http://github.io/ursa/vocabulary#resourceType": { | |
"@id": "urn:net:URSA.Example.WebApplication.Data.Person" | |
}, | |
"http://github.io/ursa/vocabulary#singleValue": true, | |
"label": { | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "person" | |
} | |
}, | |
{ | |
"@id": "_:magi13", | |
"@type": [ | |
"hydra:Resource", | |
"rdfs:Resource" | |
], | |
"http://github.io/ursa/vocabulary#mediaType": [ | |
{ | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "application/xml" | |
}, | |
{ | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "application/json" | |
}, | |
{ | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "text/xml" | |
} | |
], | |
"http://github.io/ursa/vocabulary#resourceType": { | |
"@id": "http://openguid.net/rdf#guid" | |
}, | |
"http://github.io/ursa/vocabulary#singleValue": true | |
}, | |
{ | |
"@id": "http://localhost:51509/person/#PUTIdAndPerson", | |
"@type": [ | |
"hydra:ReplaceResourceOperation", | |
"rdfs:Resource", | |
"hydra:Resource", | |
"hydra:Operation" | |
], | |
"comment": { | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "Updates the specified person." | |
}, | |
"label": { | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "Update" | |
}, | |
"expects": { | |
"@id": "_:magi14" | |
}, | |
"method": { | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "PUT" | |
} | |
}, | |
{ | |
"@id": "http://localhost:51509/person/PUTIdAndPerson/template#id", | |
"@type": [ | |
"hydra:IriTemplateMapping", | |
"rdfs:Resource", | |
"hydra:Resource", | |
"rdfs:Class", | |
"hydra:Class" | |
], | |
"property": { | |
"@id": "urn:net:URSA.Example.WebApplication.Data.Person.Id" | |
}, | |
"required": true, | |
"variable": { | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "id" | |
} | |
}, | |
{ | |
"@id": "http://localhost:51509/person/PUTIdAndPerson#template", | |
"@type": [ | |
"hydra:IriTemplate", | |
"rdfs:Resource", | |
"hydra:Resource", | |
"rdfs:Class", | |
"hydra:Class" | |
], | |
"mapping": { | |
"@id": "http://localhost:51509/person/PUTIdAndPerson/template#id" | |
}, | |
"template": { | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "/person/id/{?id}" | |
} | |
}, | |
{ | |
"@id": "_:magi14", | |
"@type": [ | |
"hydra:Resource", | |
"rdfs:Resource" | |
], | |
"http://github.io/ursa/vocabulary#mediaType": [ | |
{ | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "application/xml" | |
}, | |
{ | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "application/json" | |
}, | |
{ | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "text/xml" | |
} | |
], | |
"http://github.io/ursa/vocabulary#resourceType": { | |
"@id": "urn:net:URSA.Example.WebApplication.Data.Person" | |
}, | |
"http://github.io/ursa/vocabulary#singleValue": true, | |
"label": { | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "person" | |
} | |
}, | |
{ | |
"@id": "http://localhost:51509/person/PUTIdAndPerson#withTemplate", | |
"@type": [ | |
"hydra:TemplatedLink", | |
"rdfs:Resource", | |
"hydra:Resource", | |
"http://www.w3.org/1999/02/22-rdf-syntax-ns#Property" | |
], | |
"operation": { | |
"@id": "http://localhost:51509/person/#PUTIdAndPerson" | |
} | |
}, | |
{ | |
"@id": "http://localhost:51509/person/#DELETEId", | |
"@type": [ | |
"hydra:DeleteResourceOperation", | |
"rdfs:Resource", | |
"hydra:Resource", | |
"hydra:Operation" | |
], | |
"comment": { | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "Deletes a person." | |
}, | |
"label": { | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "Delete" | |
}, | |
"method": { | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "DELETE" | |
} | |
}, | |
{ | |
"@id": "http://localhost:51509/person/DELETEId/template#id", | |
"@type": [ | |
"hydra:IriTemplateMapping", | |
"rdfs:Resource", | |
"hydra:Resource", | |
"rdfs:Class", | |
"hydra:Class" | |
], | |
"property": { | |
"@id": "urn:net:URSA.Example.WebApplication.Data.Person.Id" | |
}, | |
"required": true, | |
"variable": { | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "id" | |
} | |
}, | |
{ | |
"@id": "http://localhost:51509/person/DELETEId#template", | |
"@type": [ | |
"hydra:IriTemplate", | |
"rdfs:Resource", | |
"hydra:Resource", | |
"rdfs:Class", | |
"hydra:Class" | |
], | |
"mapping": { | |
"@id": "http://localhost:51509/person/DELETEId/template#id" | |
}, | |
"template": { | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "/person/id/{?id}" | |
} | |
}, | |
{ | |
"@id": "http://localhost:51509/person/DELETEId#withTemplate", | |
"@type": [ | |
"hydra:TemplatedLink", | |
"rdfs:Resource", | |
"hydra:Resource", | |
"http://www.w3.org/1999/02/22-rdf-syntax-ns#Property" | |
], | |
"operation": { | |
"@id": "http://localhost:51509/person/#DELETEId" | |
} | |
}, | |
{ | |
"@id": "http://localhost:51509/person/roles/#POSTIdAndRoles", | |
"@type": [ | |
"hydra:Operation", | |
"rdfs:Resource", | |
"hydra:Resource" | |
], | |
"label": { | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "SetRoles" | |
}, | |
"expects": { | |
"@id": "_:magi15" | |
}, | |
"method": { | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "POST" | |
} | |
}, | |
{ | |
"@id": "http://localhost:51509/person/roles/POSTIdAndRoles/template#id", | |
"@type": [ | |
"hydra:IriTemplateMapping", | |
"rdfs:Resource", | |
"hydra:Resource", | |
"rdfs:Class", | |
"hydra:Class" | |
], | |
"property": { | |
"@id": "urn:net:URSA.Example.WebApplication.Data.Person.Id" | |
}, | |
"required": true, | |
"variable": { | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "id" | |
} | |
}, | |
{ | |
"@id": "http://localhost:51509/person/roles/POSTIdAndRoles#template", | |
"@type": [ | |
"hydra:IriTemplate", | |
"rdfs:Resource", | |
"hydra:Resource", | |
"rdfs:Class", | |
"hydra:Class" | |
], | |
"mapping": { | |
"@id": "http://localhost:51509/person/roles/POSTIdAndRoles/template#id" | |
}, | |
"template": { | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "/person/id/{?id}/roles" | |
} | |
}, | |
{ | |
"@id": "_:magi15", | |
"@type": [ | |
"hydra:Resource", | |
"rdfs:Resource" | |
], | |
"http://github.io/ursa/vocabulary#mediaType": [ | |
{ | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "application/xml" | |
}, | |
{ | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "application/json" | |
}, | |
{ | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "text/xml" | |
} | |
], | |
"http://github.io/ursa/vocabulary#resourceType": { | |
"@id": "http://www.w3.org/2001/XMLSchema#string" | |
}, | |
"http://github.io/ursa/vocabulary#singleValue": false, | |
"label": { | |
"@type": "http://www.w3.org/2001/XMLSchema#string", | |
"@value": "roles" | |
} | |
}, | |
{ | |
"@id": "http://localhost:51509/person/roles/POSTIdAndRoles#withTemplate", | |
"@type": [ | |
"hydra:TemplatedLink", | |
"rdfs:Resource", | |
"hydra:Resource", | |
"http://www.w3.org/1999/02/22-rdf-syntax-ns#Property" | |
], | |
"operation": { | |
"@id": "http://localhost:51509/person/roles/#POSTIdAndRoles" | |
} | |
} | |
], | |
"@context": { | |
"rdfs": "http://www.w3.org/2000/01/rdf-schema#", | |
"hydra": "http://www.w3.org/ns/hydra/core#", | |
"label": "rdfs:label", | |
"comment": "rdfs:comment", | |
"range": "rdfs:range", | |
"domain": "rdfs:domain", | |
"subClassOf": "rdfs:subClassOf", | |
"title": "hydra:title", | |
"description": "hydra:description", | |
"supportedClasses": "hydra:supportedClasses", | |
"supportedProperties": "hydra:supportedProperties", | |
"supportedOperation": "hydra:supportedOperation", | |
"operation": "hydra:operation", | |
"statusCodes": "hydra:statusCodes", | |
"entrypoint": "hydra:entrypoint", | |
"template": "hydra:template", | |
"mapping": "hydra:mapping", | |
"variable": "hydra:variable", | |
"property": "hydra:property", | |
"required": "hydra:required", | |
"readonly": "hydra:readonly", | |
"writeonly": "hydra:writeonly", | |
"method": "hydra:method", | |
"expects": "hydra:expects", | |
"returns": "hydra:returns" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment