---
# System prepended metadata

title: Untitled

---

 
 ### Granting access to all local and remote notebooks and notes
 
 ```turtle
 <#grant>
  a interop:AccessGrant ;
  interop:registeredBy https://alice.pod.example/profile/id#me ;
  interop:registeredWith https://trusted.example/id#agent ;
  interop:registeredAt "2020-09-05T06:15:01Z"^^xsd:dateTime ;
  interop:updatedAt "2020-09-05T06:15:01Z"^^xsd:dateTime ;
  interop:hasAccessGrantSubject <#grant-subject> ;
  interop:hasCompiledAccessGroup <#cag-notebook-group> ;
  interop:hasDataGrant <#notebook-grant>, <#note-grant> .

<#grant-subject>
  a interop:AccessGrantSubject ;
  interop:accessByAgent https://alice.pod.example/profile/id#me ;
  interop:accessByApplication https://nevernote.example/id#agent .

<#notebook-grant>
  a interop:DataGrant ;
  interop:hasRegistration data:notebook-tree ;
  interop:registeredShapeTree note:notebook-tree ;
  interop:satisfiesCompiledAccess <#ca-notebook> ;
  interop:accessMode acl:Read, acl:Write ;
  interop:scopeOfDataGrant interop:AllInstances ;
  interop:hasRemoteDataGrant <#notebook-remote-grant> .
  
<#notebook-remote-grant>
  a interop:RemoteDataGrant ;
  interop:scopeOfRemoteDataGrant interop:AllRemote ;
  interop:hasRemoteDataRegistrationSet remotedata:notebook-tree-set .  

<#note-grant>
  a interop:DataGrant ;
  interop:hasRegistration data:note-tree ;
  interop:registeredShapeTree note:note-tree ;
  interop:satisfiesCompiledAccess <#ca-note> ;
  interop:accessMode acl:Read, acl:Write ;
  interop:scopeOfDataGrant interop:AllInstances ;
  interop:hasRemoteDataGrant <#note-remote-grant> .

<#note-remote-grant>
  a interop:RemoteDataGrant ;
  interop:scopeOfRemoteDataGrant interop:AllRemote ;
  interop:hasRemoteDataRegistrationSet remotedata:note-tree-set .
```

### Granting access to a subset of local and remote notebook and note data

```turtle
 <#grant>
  a interop:AccessGrant ;
  interop:registeredBy https://alice.pod.example/profile/id#me ;
  interop:registeredWith https://trusted.example/id#agent ;
  interop:registeredAt "2020-09-05T06:15:01Z"^^xsd:dateTime ;
  interop:updatedAt "2020-09-05T06:15:01Z"^^xsd:dateTime ;
  interop:hasAccessGrantSubject <#grant-subject> ;
  interop:hasCompiledAccessGroup <#cag-notebook-group> ;
  interop:hasDataGrant <#notebook-grant>, <#note-grant> .

<#grant-subject>
  a interop:AccessGrantSubject ;
  interop:accessByAgent https://alice.pod.example/profile/id#me ;
  interop:accessByApplication https://nevernote.example/id#agent .

<#notebook-grant>
  a interop:DataGrant ;
  interop:hasRegistration data:notebook-tree ;
  interop:registeredShapeTree note:notebook-tree ;
  interop:satisfiesCompiledAccess <#ca-notebook> ;
  interop:accessMode acl:Read, acl:Write ;
  interop:scopeOfDataGrant interop:SelectedInstances ;
  interop:HasDataInstance
      <data:notebook-tree/notebook-1> ,
      <data:notebook-tree/notebook-3> ;
  interop:hasRemoteDataGrant <#notebook-remote-grant> .
  
<#notebook-remote-grant>
  a interop:RemoteDataGrant ;
  interop:scopeOfRemoteDataGrant interop:SelectedRemote ;
  interop:hasRemoteDataRegistrationGrant 
    <#notebook-remote-registration-grant-1> ,
    <#notebook-remote-registration-grant-2> .
  
<#notebook-remote-registration-grant-1>  
  a interop:RemoteDataRegistrationGrant ;
  interop:hasRemoteDataRegistration 
      <remotedata:notebook-tree-set/bob-notebook-tree> ;
  interop:scopeOfRemoteDataRegistrationGrant interop:AllInstances .

<#notebook-remote-registration-grant-2>  
  a interop:RemoteDataRegistrationGrant ;
  interop:hasRemoteDataRegistration 
      <remotedata:notebook-tree-set/alice-notebook-tree> ;
  interop:scopeOfRemoteDataRegistrationGrant interop:SelectedInstances ;
  interop:hasRemoteDataInstance
      <remotedata:notebook-tree-set/alice-notebook-tree/notebook-1> ,
      <remotedata:notebook-tree-set/alice-notebook-tree/notebook-2> .

<#note-grant>
  a interop:DataGrant ;
  interop:hasRegistration data:note-tree ;
  interop:registeredShapeTree note:note-tree ;
  interop:satisfiesCompiledAccess <#ca-note> ;
  interop:accessMode acl:Read, acl:Write ;
  interop:scopeOfDataGrant interop:AllInstances ;
  interop:hasRemoteDataGrant <#note-remote-grant> .

<#note-remote-registration-grant-1>  
  a interop:RemoteDataRegistrationGrant ;
  interop:hasRemoteDataRegistration 
      <remotedata:note-tree-set/bob-note-tree> ;
  interop:scopeOfRemoteDataRegistrationGrant interop:AllInstances .

<#note-remote-registration-grant-2>  
  a interop:RemoteDataRegistrationGrant ;
  interop:hasRemoteDataRegistration 
      <remotedata:note-tree-set/alice-note-tree> ;
  interop:scopeOfRemoteDataRegistrationGrant interop:InheritInstances .
```