Skip to content

Instantly share code, notes, and snippets.

@chamerling
Forked from stuehmer/stream-group.json
Last active December 14, 2015 15:29
Show Gist options
  • Save chamerling/5108319 to your computer and use it in GitHub Desktop.
Save chamerling/5108319 to your computer and use it in GitHub Desktop.
{
"http://groups.event-processing.org/id/MyGroupA#group" :
{
"http://purl.org/dc/elements/1.1/title": [ { "type" : "literal", "value" : "MyGroupA group" } ],
"http://purl.org/dc/elements/1.1/description": [ { "type" : "literal", "value" : "The Play MyGroupA group" } ],
"http://www.w3.org/2002/06/xhtml2/icon": [ { "type" : "uri", "value" : "http://s-static.ak.facebook.com/rsrc.php/yi/r/q9U99v3_saj.ico" } ],
"http://www.w3.org/1999/02/22-rdf-syntax-ns#type": [ { "type" : "uri", "value" : "http://rdfs.org/sioc/ns#Usergroup" } ]
},
"http://groups.event-processing.org/id/MyGroupB#group" :
{
"http://purl.org/dc/elements/1.1/title": [ { "type" : "literal", "value" : "MyGroupB group" } ],
"http://purl.org/dc/elements/1.1/description": [ { "type" : "literal", "value" : "The Play MyGroupB group" } ],
"http://www.w3.org/2002/06/xhtml2/icon": [ { "type" : "uri", "value" : "http://s-static.ak.facebook.com/rsrc.php/yi/r/q9U99v3_saj.ico" } ],
"http://www.w3.org/1999/02/22-rdf-syntax-ns#type": [ { "type" : "uri", "value" : "http://rdfs.org/sioc/ns#Usergroup" } ]
},
"http://streams.event-processing.org/ids/MyPersonalStream#stream" :
{
"http://purl.org/dc/elements/1.1/title": [ { "type" : "literal", "value" : "Facebook Status Feed" } ],
"http://purl.org/dc/elements/1.1/description": [ { "type" : "literal", "value" : "A stream of Facebook Wall updates." } ],
"http://www.w3.org/2002/06/xhtml2/icon": [ { "type" : "uri", "value" : "http://s-static.ak.facebook.com/rsrc.php/yi/r/q9U99v3_saj.ico" } ],
"http://www.play-project.eu/xml/ns/topic": [ { "type" : "uri" , "value" : "http://streams.event-processing.org/ids/FacebookStatusFeed" } ],
"http://www.play-project.eu/xml/ns/topic/prefix": [ { "type" : "literal" , "value" : "s" } ],
"http://www.play-project.eu/xml/ns/topic/name": [ { "type" : "literal" , "value" : "FacebookStatusFeed" } ],
"http://www.play-project.eu/xml/ns/topic/ns": [ { "type" : "uri" , "value" : "http://streams.event-processing.org/ids/" } ],
"http://www.w3.org/1999/02/22-rdf-syntax-ns#type": [ { "type" : "uri", "value" : "http://events.event-processing.org/types/Stream" } ]
},
"http://permissions.event-processing.org/id/0000001#acl" :
{
"http://www.w3.org/ns/auth/acl#accessTo": [ { "type" : "uri", "value" : "http://streams.event-processing.org/ids/MyPersonalStream" } ],
"http://www.w3.org/ns/auth/acl#agent": [ { "type" : "uri", "value" : "http://groups.event-processing.org/id/MyGroupB#group" } ],
"http://www.w3.org/ns/auth/acl#mode": [ { "type" : "uri", "value" : "http://docs.oasis-open.org/wsn/bw-2/NotificationConsumer/Notify" }, { "type" : "uri", "value" : "http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest" }, { "type" : "uri", "value" : "http://www.w3.org/ns/auth/acl#Write" }, { "type" : "uri", "value" : "http://www.w3.org/ns/auth/acl#Read" } ],
"http://www.w3.org/1999/02/22-rdf-syntax-ns#type": [ { "type" : "uri", "value" : "http://www.w3.org/ns/auth/acl#Authorization" } ]
}
}
@stuehmer
Copy link

stuehmer commented Mar 7, 2013

Ok, what we wrote is valid RDF, it parses nicely to another RDF syntax with no loss :)

@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
@prefix owl:     <http://www.w3.org/2002/07/owl#> .
@prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .
@prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<http://permissions.event-processing.org/id/0000001#acl>
      a       <http://www.w3.org/ns/auth/acl#Authorization> ;
      <http://www.w3.org/ns/auth/acl#accessTo>
              <http://streams.event-processing.org/ids/MyPersonalStream> ;
      <http://www.w3.org/ns/auth/acl#agent>
              <http://groups.event-processing.org/id/MyGroupB#group> ;
      <http://www.w3.org/ns/auth/acl#mode>
              <http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest> , <http://www.w3.org/ns/auth/acl#Read> , <http://docs.oasis-open.org/wsn/bw-2/NotificationConsumer/Notify> , <http://www.w3.org/ns/auth/acl#Write> .

<http://streams.event-processing.org/ids/MyPersonalStream#stream>
      a       <http://events.event-processing.org/types/Stream> ;
      <http://purl.org/dc/elements/1.1/description>
              "A stream of Facebook Wall updates." ;
      <http://purl.org/dc/elements/1.1/title>
              "Facebook Status Feed" ;
      <http://www.play-project.eu/xml/ns/topic>
              <http://streams.event-processing.org/ids/FacebookStatusFeed> ;
      <http://www.play-project.eu/xml/ns/topic/name>
              "FacebookStatusFeed" ;
      <http://www.play-project.eu/xml/ns/topic/ns>
              <http://streams.event-processing.org/ids/> ;
      <http://www.play-project.eu/xml/ns/topic/prefix>
              "s" ;
      <http://www.w3.org/2002/06/xhtml2/icon>
              <http://s-static.ak.facebook.com/rsrc.php/yi/r/q9U99v3_saj.ico> .

<http://groups.event-processing.org/id/MyGroupA#group>
      a       <http://rdfs.org/sioc/ns#Usergroup> ;
      <http://purl.org/dc/elements/1.1/description>
              "The Play MyGroupA group" ;
      <http://purl.org/dc/elements/1.1/title>
              "MyGroupA group" ;
      <http://www.w3.org/2002/06/xhtml2/icon>
              <http://s-static.ak.facebook.com/rsrc.php/yi/r/q9U99v3_saj.ico> .

<http://groups.event-processing.org/id/MyGroupB#group>
      a       <http://rdfs.org/sioc/ns#Usergroup> ;
      <http://purl.org/dc/elements/1.1/description>
              "The Play MyGroupB group" ;
      <http://purl.org/dc/elements/1.1/title>
              "MyGroupB group" ;
      <http://www.w3.org/2002/06/xhtml2/icon>
              <http://s-static.ak.facebook.com/rsrc.php/yi/r/q9U99v3_saj.ico> .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment