W3C home > Mailing lists > Public > public-hydra@w3.org > January 2015

Re: remove hydra:Resource and hydra:Class (ISSUE-90)

From: Kingsley Idehen <kidehen@openlinksw.com>
Date: Wed, 14 Jan 2015 08:28:15 -0500
Message-ID: <54B66EEF.7090405@openlinksw.com>
To: public-hydra@w3.org
On 1/14/15 3:42 AM, Ruben Verborgh wrote:
>> >When we discuss these things, we always operate in the context of a specific
>> >Web API.
> I hope not:-)  Cooler things are possible if we don't.
+1

>
>> >the absence of
>> >hydra:Resource should be seen as a very strong signal that it isn't worth
>> >dereferencing a URI.
> That interpretation is not possible under the RDF model.
> We have a lot of freedom, but we cannot bend the model.
>
+1

Maybe this helps in regards to RESTful interaction that enables 
deduction of resource (entity) capabilities from HTTP response metadata 
(leveraging LDP [1]):

JSON-LD :

kidehen$ curl -iLH "Accept: application/ld+json" 
http://kingsley.idehen.net/~kidehen/Public/
HTTP/1.1 200 OK
Server: Virtuoso/07.10.3211 (Linux) x86_64-redhat-linux-gnu  VDB
Connection: Keep-Alive
Date: Wed, 14 Jan 2015 13:22:06 GMT
Accept-Ranges: bytes
Content-Type: application/ld+json
MS-Author-Via: DAV, SPARQL
Allow: 
GET,HEAD,POST,PUT,DELETE,OPTIONS,PROPFIND,PROPPATCH,COPY,MOVE,LOCK,UNLOCK,TRACE,PATCH
Accept-Patch: application/sparql-update
Accept-Post: text/turtle,text/n3,text/nt
Vary: Accept,Origin,If-Modified-Since,If-None-Match
Link: <http://www.w3.org/ns/ldp#Resource>; rel="type"
Link: <http://www.w3.org/ns/ldp#BasicContainer>; rel="type"
Link: <?p=1>; rel="first"
Link: <?p=1>; rel="last"
Link: <http://kingsley.idehen.net/DAV/home/kidehen/Public,meta>; rel="meta"
Link: <http://kingsley.idehen.net/DAV/home/kidehen/Public,acl>; rel="acl"
ETag: "0952ea40e369cea77ac494c48dcc5e5a"
X-SPARQL-default-graph: http://kingsley.idehen.net/DAV/home/kidehen/Public/
Content-Length: 1664

{ "@graph": [
     { "@id": 
"http://kingsley.idehen.net/DAV/home/kidehen/Public/kingsley.ttl",
       "@type" : [ "http://xmlns.com/foaf/0.1/Document" ] } ,
     { "@id": 
"http://kingsley.idehen.net/DAV/home/kidehen/Public/signed_docs_statements_demo.ttl",
       "@type" : [ 
"http://kingsley.idehen.net/DAV/home/kidehen/Public/signed_docs_statements_demo.ttl#Document" 
] } ,
     { "@id": "http://www.w3.org/ns/ldp#Container",
       "@type" : [ "http://www.w3.org/2000/01/rdf-schema#Class" ,
         "http://www.w3.org/1999/02/22-rdf-syntax-ns#Class" ] } ,
     { "@id": "http://kingsley.idehen.net/DAV/home/kidehen/Public/",
       "@type" : [ "http://www.w3.org/ns/ldp#BasicContainer" ,
         "http://www.w3.org/ns/ldp#Container" ] ,
       "http://www.w3.org/ns/ldp#contains" : [ 
"http://kingsley.idehen.net/DAV/home/kidehen/Public/signed_docs_statements_demo.ttl" 
,
"http://kingsley.idehen.net/DAV/home/kidehen/Public/OneDrive,acl" ,
"http://kingsley.idehen.net/DAV/home/kidehen/Public/kingsley.ttl" ,
"http://kingsley.idehen.net/DAV/home/kidehen/Public/Linked%20Data%20Documents,acl" 
,
"http://kingsley.idehen.net/DAV/home/kidehen/Public/AmazonS3,acl" ,
"http://kingsley.idehen.net/DAV/home/kidehen/Public/jordan2.ttl" ,
"http://kingsley.idehen.net/DAV/home/kidehen/Public/jordan.ttl" ] } ,
     { "@id": 
"http://kingsley.idehen.net/DAV/home/kidehen/Public/OneDrive,acl",
       "@type" : [ "http://www.w3.org/2000/01/rdf-schema#Resource" ,
         "http://www.w3.org/ns/ldp#Resource" ] } ,
     { "@id": "http://www.w3.org/ns/ldp#BasicContainer",
       "@type" : [ "http://www.w3.org/2000/01/rdf-schema#Class" ] }
] }


TURTLE:

curl -iLH "Accept: text/turtle" http://kingsley.idehen.net/~kidehen/Public/
HTTP/1.1 200 OK
Server: Virtuoso/07.10.3211 (Linux) x86_64-redhat-linux-gnu  VDB
Connection: Keep-Alive
Date: Wed, 14 Jan 2015 12:52:11 GMT
Accept-Ranges: bytes
Content-Type: text/turtle
MS-Author-Via: DAV, SPARQL
Allow: 
GET,HEAD,POST,PUT,DELETE,OPTIONS,PROPFIND,PROPPATCH,COPY,MOVE,LOCK,UNLOCK,TRACE,PATCH
Accept-Patch: application/sparql-update
Accept-Post: text/turtle,text/n3,text/nt
Vary: Accept,Origin,If-Modified-Since,If-None-Match
Link: <http://www.w3.org/ns/ldp#Resource>; rel="type"
Link: <http://www.w3.org/ns/ldp#BasicContainer>; rel="type"
Link: <?p=1>; rel="first"
Link: <?p=1>; rel="last"
Link: <http://kingsley.idehen.net/DAV/home/kidehen/Public,meta>; rel="meta"
Link: <http://kingsley.idehen.net/DAV/home/kidehen/Public,acl>; rel="acl"
ETag: "0952ea40e369cea77ac494c48dcc5e5a"
X-SPARQL-default-graph: http://kingsley.idehen.net/DAV/home/kidehen/Public/
Content-Length: 1331

@prefix rdf:    <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix foaf:    <http://xmlns.com/foaf/0.1/> .
@prefix ns2: 
<http://kingsley.idehen.net/DAV/home/kidehen/Public/signed_docs_statements_demo.ttl#> 
.
@prefix ldp:    <http://www.w3.org/ns/ldp#> .
@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .

<http://kingsley.idehen.net/DAV/home/kidehen/Public/kingsley.ttl>
     rdf:type    foaf:Document .
<http://kingsley.idehen.net/DAV/home/kidehen/Public/signed_docs_statements_demo.ttl>
     rdf:type    ns2:Document .
ldp:Container
     rdf:type    rdfs:Class , rdf:Class .
<http://kingsley.idehen.net/DAV/home/kidehen/Public/>
     rdf:type    ldp:Container , ldp:BasicContainer ;
     ldp:contains 
<http://kingsley.idehen.net/DAV/home/kidehen/Public/kingsley.ttl> , 
<http://kingsley.idehen.net/DAV/home/kidehen/Public/jordan.ttl> , 
<http://kingsley.idehen.net/DAV/home/kidehen/Public/jordan2.ttl> , 
<http://kingsley.idehen.net/DAV/home/kidehen/Public/signed_docs_statements_demo.ttl> 
, <http://kingsley.idehen.net/DAV/home/kidehen/Public/AmazonS3,acl> , 
<http://kingsley.idehen.net/DAV/home/kidehen/Public/Linked%20Data%20Documents,acl> 
, <http://kingsley.idehen.net/DAV/home/kidehen/Public/OneDrive,acl> .
<http://kingsley.idehen.net/DAV/home/kidehen/Public/OneDrive,acl>
     rdf:type    rdfs:Resource , ldp:Resource .
ldp:BasicContainer
     rdf:type    rdfs:Class .

-- 
Regards,

Kingsley Idehen	
Founder & CEO
OpenLink Software
Company Web: http://www.openlinksw.com
Personal Weblog 1: http://kidehen.blogspot.com
Personal Weblog 2: http://www.openlinksw.com/blog/~kidehen
Twitter Profile: https://twitter.com/kidehen
Google+ Profile: https://plus.google.com/+KingsleyIdehen/about
LinkedIn Profile: http://www.linkedin.com/in/kidehen
Personal WebID: http://kingsley.idehen.net/dataspace/person/kidehen#this




Received on Wednesday, 14 January 2015 13:28:38 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 14 January 2015 13:28:39 UTC