- From: Brent Shambaugh <brent.shambaugh@gmail.com>
- Date: Wed, 22 Nov 2017 13:20:34 +0100
- To: "semantic-web@w3.org" <semantic-web@w3.org>
Dear all, I am trying to understand Trig by converting it to LDP. I am not sure if this is correct. First I followed example 1 in the spec (https://www.w3.org/TR/trig/). # This document encodes one graph. @prefix ex: <http://www.example.org/vocabulary#> . @prefix : <http://www.example.org/exampleDocument#> . :G1 { :Monica a ex:Person ; ex:name "Monica Murphy" ; ex:homepage <http://www.monicamurphy.org> ; ex:email <mailto:monica@monicamurphy.org> ; ex:hasSkill ex:Management , ex:Programming . } Then I converted it to LDP: # This document encodes one graph. @prefix ex: <http://www.example.org/vocabulary#> . @prefix : <http://www.example.org/exampleDocument#> . :G1 a ldp:Resource ; ldp:interactionModel ldp:Container ; ldp:contains: Monica ; dcterms:created "2016-06-07T22:40:25.000-04:00"^^xsd:dateTime ; dcterms:modified "2016-06-07T22:40:25.000"^^xsd:dateTime . :Monica a ldp:Resource , ldp:RDFSource ; ldp:interactionModel ldp:Container ; dcterms:created "2016-06-07T22:40:25.000-04:00"^^xsd:dateTime ; dcterms:modified "2016-06-07T22:40:25.000"^^xsd:dateTime ; ex:name "Monica Murphy" ; ex:homepage <http://www.monicamurphy.org> ; ex:email <mailto:monica@monicamurphy.org> ; ex:hasSkill ex:Management , ex:Programming . Also what about this?? trig :A { :A :B :C ; :F :K . } In LDP use this: :A a ldp:Resource ; ldp:interactionModel ldp:Container ; ldp:contains A; dcterms:created "2016-06-07T22:40:25.000-04:00"^^xsd:dateTime ; dcterms:modified "2016-06-07T22:40:25.000"^^xsd:dateTime . :A ldp:Resource , ldp:RDFSource; ldp:interactionModel ldp:Container ; dcterms:created "2016-06-07T22:40:25.000-04:00"^^xsd:dateTime ; dcterms:modified "2016-06-07T22:40:25.000"^^xsd:dateTime ; :B :C ; :F :K . or use this?? :A ldp:Resource , ldp:RDFSource; ldp:interactionModel ldp:Container ; dcterms:created "2016-06-07T22:40:25.000-04:00"^^xsd:dateTime ; dcterms:modified "2016-06-07T22:40:25.000"^^xsd:dateTime ; :B :C ; :F :K . Thanks for your time. -Brent Shambaugh
Received on Wednesday, 22 November 2017 12:21:00 UTC