Last active
February 9, 2016 22:51
-
-
Save cbeer/556b8877c0cefce6473f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# curl -X PUT "http://localhost:4567/netWorth/nw1/" -d @nw1 -H "Content-Type: text/turtle" | |
<> a <http://example.org/ontology#NetWorth> . |
This file contains hidden or 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
# curl -X PUT "http://localhost:4567/netWorth/nw1/advisors" -d @advisors -H "Content-Type: text/turtle" -H "Link: <http://www.w3.org/ns/ldp#IndirectContainer>;rel=\"type\"" | |
@prefix ldp: <http://www.w3.org/ns/ldp#>. | |
@prefix o: <http://example.org/ontology#>. | |
<> ldp:membershipResource <http://localhost:4567/netWorth/nw1/> ; | |
ldp:hasMemberRelation o:advisor; | |
ldp:insertedContentRelation o:primaryTopic . |
This file contains hidden or 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
# curl -X POST "http://localhost:4567/netWorth/nw1/advisors" -d @c -H "Content-Type: text/turtle" | |
@prefix ldp: <http://www.w3.org/ns/ldp#>. | |
@prefix o: <http://example.org/ontology#>. | |
<> o:primaryTopic <#me> . |
This file contains hidden or 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
14:43:19 ~ $ curl "http://localhost:4567/netWorth/nw1/" | |
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | |
<http://localhost:4567/netWorth/nw1/> a <http://example.org/ontology#NetWorth>; | |
<http://example.org/ontology#advisor> <http://localhost:4567/netWorth/nw1/advisors/de726416-b1a2-4ff5-8d76-7ee6c22d0a7c> . | |
## Ought to be: | |
# <> <http://example.org/ontology#advisor> <http://localhost:4567/netWorth/nw1/advisors/de726416-b1a2-4ff5-8d76-7ee6c22d0a7c#me> . | |
@prefix ldp: <http://www.w3.org/ns/ldp#> . | |
<http://localhost:4567/netWorth/nw1/advisors> ldp:contains <http://localhost:4567/netWorth/nw1/advisors/de726416-b1a2-4ff5-8d76-7ee6c22d0a7c>; | |
ldp:hasMemberRelation <http://example.org/ontology#advisor>; | |
ldp:indirectContentRelation ldp:MemberSubject; | |
ldp:insertedContentRelation <http://example.org/ontology#primaryTopic>; | |
ldp:membershipResource <http://localhost:4567/netWorth/nw1/> . | |
14:50:12 ~ $ curl "http://localhost:4567/netWorth/nw1/advisors/de726416-b1a2-4ff5-8d76-7ee6c22d0a7c" | |
<http://localhost:4567/netWorth/nw1/advisors/de726416-b1a2-4ff5-8d76-7ee6c22d0a7c> <http://example.org/ontology#primaryTopic> <http://localhost:4567/netWorth/nw1/advisors/de726416-b1a2-4ff5-8d76-7ee6c22d0a7c#me> . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment