-
Notifications
You must be signed in to change notification settings - Fork 44
/
acp.html
3180 lines (2972 loc) · 125 KB
/
acp.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html
about="https://solidproject.org/TR/acp#"
typeof="schema:Article doap:Specification"
prefix="
acp: http://www.w3.org/ns/solid/acp#
bibo: http://purl.org/ontology/bibo/
cito: http://purl.org/spar/cito/
dc: http://purl.org/dc/terms/
doap: http://usefulinc.com/ns/doap#
owl: http://www.w3.org/2002/07/owl#
rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#
rdfs: http://www.w3.org/2000/01/rdf-schema#
schema: http://schema.org/
vann: http://purl.org/vocab/vann/
xsd: http://www.w3.org/2001/XMLSchema#"
dir="ltr"
lang="en"
>
<head>
<meta charset="utf-8" />
<meta content="width=device-width, initial-scale=1" name="viewport" />
<link href="https://solidproject.org/TR/solid.svg" rel="icon">
<title>Access Control Policy (ACP)</title>
<link
rel="stylesheet"
href="https://www.w3.org/StyleSheets/TR/2016/base.css"
media="all"
/>
<link rel="stylesheet" href="./2022/acp-main-20220518.css" media="all" />
<link rel="stylesheet" href="./2022/acp-code-20220518.css" media="all" />
</head>
<body vocab="https://solidproject.org/TR/acp#">
<header class="head">
<a class="logo" href="https://solidproject.org/"
><img alt="Solid" src="solid.svg" width="72" height="66"
/></a>
<h1 property="dc:title">Access Control Policy (ACP)</h1>
<h2>
<span property="rdfs:comment">Version 0.9.0</span>,
<time property="dc:issued" datetime="2022-05-18">2022-05-18</time>
</h2>
<details open="">
<summary>More details about this document</summary>
<dl>
<dt>This version</dt>
<dd>
<a href="https://solidproject.org/TR/2022/acp-20220518">https://solidproject.org/TR/2022/acp-20220518</a>
</dd>
<dt>Latest version</dt>
<dd>
<a href="https://solidproject.org/TR/acp">https://solidproject.org/TR/acp</a>
</dd>
<dt>Editor's draft</dt>
<dd>
<a href="https://solid.github.io/authorization-panel/acp-specification">https://solid.github.io/authorization-panel/acp-specification</a>
</dd>
<dt>Source repository</dt>
<dd>
<a href="https://github.com/solid/authorization-panel">https://github.com/solid/authorization-panel</a>
</dd>
<dt>Issue tracking</dt>
<dd>
<a href="https://github.com/solid/authorization-panel/issues">https://github.com/solid/authorization-panel/issues</a>
</dd>
<dt>License</dt>
<dd>
<a href="http://purl.org/NET/rdflicense/MIT1.0">MIT License</a>
</dd>
<dt>Editors</dt>
<dd>
<ul>
<li rel="schema:creator schema:author">
<span
about="https://id.inrupt.com/matthieu"
typeof="schema:Person"
>
<a
rel="schema:url"
href="https://github.com/matthieubosquet/"
>
<span
about="https://id.inrupt.com/matthieu"
property="schema:name"
>
<span property="schema:givenName">Matthieu</span>
<span property="schema:familyName">Bosquet</span>
</span>
</a>
</span>
</li>
</ul>
</dd>
</dl>
</details>
<p id="copyright" class="copyright">
<span property="dc:license">MIT License.</span> Copyright ©
<span property="dc:dateCopyrighted">2022</span>
<a
rel="dc:rightsHolder"
href="http://www.w3.org/community/solid/"
>W3C Solid Community Group</a
>.
</p>
</header>
<section
datatype="rdf:HTML"
typeof="bibo:Chapter"
resource=":abstract"
property="bibo:hasPart"
>
<h2 id="abstract">Abstract</h2>
<p>
This document defines the
<span about="acp:" property="rdfs:label"
>Access Control Policy Language (ACP)</span
>.
<span about="acp:" typeof="owl:Ontology" property="rdfs:comment"
>ACP is a language for describing, controlling, and granting access to
resources.</span
>
</p>
</section>
<section
datatype="rdf:HTML"
typeof="bibo:Chapter"
resource=":status-of-this-document"
property="bibo:hasPart"
>
<h2 id="status-of-this-document">Status of this document</h2>
<p>
This section describes the status of this document at the time of its
publication.
</p>
<p>
This document was published by the
<a href="https://www.w3.org/community/solid/">Solid Community Group</a>
as an Editor's Draft. The sections that have been incorporated have
been reviewed following the
<a href="https://github.com/solid/process">Solid process</a>. However,
the information in this document is still subject to change. You are
invited to
<a href="https://github.com/solid/specification/issues">contribute</a>
any feedback, comments, or questions you might have.
</p>
<p>
Publication as an Editor's Draft does not imply endorsement by the
W3C Membership. This is a draft document and may be updated, replaced or
obsoleted by other documents at any time. It is inappropriate to cite
this document as other than work in progress.
</p>
<p>
This document was produced by a group operating under the
<a href="https://www.w3.org/community/about/agreements/cla/"
>W3C Community Contributor License Agreement (CLA)</a
>. A human-readable
<a href="https://www.w3.org/community/about/agreements/cla-deed/"
>summary</a
>
is available.
</p>
</section>
<nav id="toc">
<h2 id="table-of-contents">Table of Contents</h2>
<ol class="toc">
<li class="tocline">
<a href="#abstract" class="tocxref">Abstract</a>
</li>
<li class="tocline">
<a href="#status-of-this-document" class="tocxref"
>Status of this document</a
>
</li>
<li class="tocline">
<a href="#introduction" class="tocxref"
><span class="secno">1</span>Introduction</a
>
<ol class="toc">
<li class="tocline">
<a href="#rdf-terminology" class="tocxref"
><span class="secno">1.1</span>RDF terminology</a
>
</li>
</ol>
<ol class="toc">
<li class="tocline">
<a href="#namespaces" class="tocxref"
><span class="secno">1.2</span>RDF vocabularies and namespace
IRIs</a
>
</li>
</ol>
<ol class="toc">
<li class="tocline">
<a href="#acp-terminology" class="tocxref"
><span class="secno">1.3</span>ACP terminology</a
>
</li>
</ol>
<ol class="toc">
<li class="tocline">
<a href="#example-graphs" class="tocxref"
><span class="secno">1.4</span>Example graphs</a
>
</li>
</ol>
<ol class="toc">
<li class="tocline">
<a href="#data-model" class="tocxref"
><span class="secno">1.5</span>Data model</a
>
</li>
</ol>
<ol class="toc">
<li class="tocline">
<a href="#ontology" class="tocxref"
><span class="secno">1.6</span>Ontology</a
>
</li>
</ol>
</li>
<li class="tocline">
<a href="#conformance" class="tocxref"
><span class="secno">2</span>Conformance</a
>
</li>
<li class="tocline">
<a href="#context-graph" class="tocxref"
><span class="secno">3</span>Context Graph</a
>
<ol class="toc">
<li class="tocline">
<a href="#context" class="tocxref"
><span class="secno">3.1</span>Context</a
>
<ol class="toc">
<li class="tocline">
<a href="#example-context" class="tocxref"
><span class="secno">3.1.1</span>Example Context</a
>
</li>
</ol>
</li>
</ol>
<ol class="toc">
<li class="tocline">
<a href="#context-extensibility" class="tocxref"
><span class="secno">3.2</span>Context extensibility</a
>
<ol class="toc">
<li class="tocline">
<a href="#example-context-extension" class="tocxref"
><span class="secno">3.2.1</span>Example Context
extension</a
>
</li>
</ol>
</li>
</ol>
</li>
<li class="tocline">
<a href="#authorization-graph" class="tocxref"
><span class="secno">4</span>Authorization Graph</a
>
<ol class="toc">
<li class="tocline">
<a href="#access-control-resource" class="tocxref"
><span class="secno">4.1</span>Access Control Resource</a
>
<ol class="toc">
<li class="tocline">
<a href="#example-access-control-resource" class="tocxref"
><span class="secno">4.1.1</span>Example Access Control
Resource</a
>
</li>
</ol>
</li>
</ol>
<ol class="toc">
<li class="tocline">
<a href="#access-control" class="tocxref"
><span class="secno">4.2</span>Access Control</a
>
<ol class="toc">
<li class="tocline">
<a href="#example-access-control" class="tocxref"
><span class="secno">4.2.1</span>Example Access Control</a
>
</li>
</ol>
</li>
</ol>
<ol class="toc">
<li class="tocline">
<a href="#policy" class="tocxref"
><span class="secno">4.3</span>Policy</a
>
<ol class="toc">
<li class="tocline">
<a href="#example-policy" class="tocxref"
><span class="secno">4.3.1</span>Example Policy</a
>
</li>
</ol>
</li>
</ol>
<ol class="toc">
<li class="tocline">
<a href="#matcher" class="tocxref"
><span class="secno">4.4</span>Matcher</a
>
<ol class="toc">
<li class="tocline">
<a href="#example-matcher" class="tocxref"
><span class="secno">4.4.1</span>Example Matcher</a
>
</li>
</ol>
</li>
</ol>
<ol class="toc">
<li class="tocline">
<a href="#matcher-extensibility" class="tocxref"
><span class="secno">4.5</span>Matcher extensibility</a
>
<ol class="toc">
<li class="tocline">
<a href="#example-matcher-extension" class="tocxref"
><span class="secno">4.5.1</span>Example Matcher
extension</a
>
</li>
</ol>
</li>
</ol>
</li>
<li class="tocline">
<a href="#access-grant-graph" class="tocxref"
><span class="secno">5</span>Access Grant Graph</a
>
<ol class="toc">
<li class="tocline">
<a href="#access-grant" class="tocxref"
><span class="secno">5.1</span>Access Grant</a
>
<ol class="toc">
<li class="tocline">
<a href="#example-access-grant" class="tocxref"
><span class="secno">5.1.1</span>Example Access Grant</a
>
</li>
</ol>
</li>
</ol>
<ol class="toc">
<li class="tocline">
<a href="#access-mode-extensibility" class="tocxref"
><span class="secno">5.2</span>Access Mode extensibility</a
>
<ol class="toc">
<li class="tocline">
<a href="#example-access-mode" class="tocxref"
><span class="secno">5.2.1</span>Example Access Mode</a
>
</li>
</ol>
</li>
</ol>
</li>
<li class="tocline">
<a href="#access-control-resolution" class="tocxref"
><span class="secno">6</span>Access Control resolution</a
>
<ol class="toc">
<li class="tocline">
<a href="#resolved-access-control" class="tocxref"
><span class="secno">6.1</span>Resolved Access Control</a
>
<ol class="toc">
<li class="tocline">
<a href="#resolved-access-control-pseudocode" class="tocxref"
><span class="secno">6.1.1</span>Resolved Access Control
pseudocode</a
>
</li>
</ol>
</li>
</ol>
<ol class="toc">
<li class="tocline">
<a href="#effective-policies" class="tocxref"
><span class="secno">6.2</span>Effective Policies</a
>
<ol class="toc">
<li class="tocline">
<a href="#effective-policies-example" class="tocxref"
><span class="secno">6.2.1</span>Effective Policies
example</a
>
</li>
</ol>
<ol class="toc">
<li class="tocline">
<a href="#effective-policies-pseudocode" class="tocxref"
><span class="secno">6.2.2</span>Effective Policies
pseudocode</a
>
</li>
</ol>
</li>
</ol>
<ol class="toc">
<li class="tocline">
<a href="#granted-access-modes" class="tocxref"
><span class="secno">6.3</span>Granted Access Modes</a
>
<ol class="toc">
<li class="tocline">
<a href="#granted-access-modes-example" class="tocxref"
><span class="secno">6.3.1</span>Granted Access Modes
example</a
>
</li>
</ol>
<ol class="toc">
<li class="tocline">
<a href="#granted-access-modes-pseudocode" class="tocxref"
><span class="secno">6.3.2</span>Granted Access Modes
pseudocode</a
>
</li>
</ol>
</li>
</ol>
<ol class="toc">
<li class="tocline">
<a href="#satisfied-policy" class="tocxref"
><span class="secno">6.4</span>Satisfied Policy</a
>
<ol class="toc">
<li class="tocline">
<a href="#satisfied-policy-example" class="tocxref"
><span class="secno">6.4.1</span>Satisfied Policy example</a
>
</li>
</ol>
<ol class="toc">
<li class="tocline">
<a href="#satisfied-policy-pseudocode" class="tocxref"
><span class="secno">6.4.2</span>Satisfied Policy
pseudocode</a
>
</li>
</ol>
</li>
</ol>
<ol class="toc">
<li class="tocline">
<a href="#satisfied-matcher" class="tocxref"
><span class="secno">6.5</span>Satisfied Matcher</a
>
<ol class="toc">
<li class="tocline">
<a href="#satisfied-matcher-example" class="tocxref"
><span class="secno">6.5.1</span>Satisfied Matcher
example</a
>
</li>
</ol>
<ol class="toc">
<li class="tocline">
<a href="#satisfied-matcher-pseudocode" class="tocxref"
><span class="secno">6.5.2</span>Satisfied Matcher
pseudocode</a
>
</li>
</ol>
</li>
</ol>
</li>
<li class="tocline">
<a href="#server-implementation" class="tocxref"
><span class="secno">7</span>Server implementation</a
>
<ol class="toc">
<li class="tocline">
<a href="#conforming-resource-server" class="tocxref"
><span class="secno">7.1</span>Conforming resource server</a
>
</li>
</ol>
<ol class="toc">
<li class="tocline">
<a href="#conforming-acp-server" class="tocxref"
><span class="secno">7.2</span>Conforming ACP server</a
>
</li>
</ol>
</li>
<li class="tocline">
<a href="#acknowledgements" class="tocxref">Acknowledgements</a>
</li>
<li class="tocline">
<a href="#references" class="tocxref">References</a>
<ol class="toc">
<li class="tocline">
<a href="#normative-references" class="tocxref"
>Normative references</a
>
</li>
</ol>
<ol class="toc">
<li class="tocline">
<a href="#informative-references" class="tocxref"
>Informative references</a
>
</li>
</ol>
</li>
</ol>
</nav>
<main>
<section
datatype="rdf:HTML"
typeof="bibo:Chapter"
resource=":introduction"
property="bibo:hasPart"
>
<h2 class="heading" id="introduction">
<span class="secno">1. </span><span class="content">Introduction</span
><a class="self-link" href="#introduction"></a>
</h2>
<p>
This section introduces ACP with an overview of key terminology, an
explanation of the conventions used in this document, example graphs
to illustrate basic concepts of resource access description and
validation, a diagram representing the main elements of the ACP data
model, and an RDF representation of the ACP ontology.
</p>
<section
datatype="rdf:HTML"
typeof="bibo:Chapter"
resource=":rdf-terminology"
property="bibo:hasPart"
>
<h3 class="heading" id="rdf-terminology">
<span class="secno">1.1. </span
><span class="content">RDF terminology</span
><a class="self-link" href="#rdf-terminology"></a>
</h3>
<p>
This document uses the terms
<a href="http://www.w3.org/TR/rdf11-concepts/#dfn-resource"
><dfn id="rdf-resource">resource</dfn></a
>,
<a href="https://www.w3.org/TR/rdf11-concepts/#dfn-property"
><dfn id="rdf-property">property</dfn></a
>,
<a href="https://www.w3.org/TR/rdf11-concepts/#dfn-rdf-vocabulary"
><dfn id="rdf-vocabulary">RDF vocabulary</dfn></a
>,
<a href="https://www.w3.org/TR/rdf11-concepts/#dfn-namespace"
><dfn id="rdf-namespace">namespace</dfn></a
>,
<a href="https://www.w3.org/TR/rdf11-concepts/#dfn-namespace-iri"
><dfn id="rdf-namespace-iri">namespace IRI</dfn></a
>,
<a href="https://www.w3.org/TR/rdf11-concepts/#dfn-namespace-prefix"
><dfn id="rdf-namespace-prefix">namespace prefix</dfn></a
>,
<a href="http://www.w3.org/TR/rdf11-concepts/#dfn-rdf-graph"
><dfn id="rdf-graph">graph</dfn></a
>,
<a href="http://www.w3.org/TR/rdf11-concepts/#dfn-iri"
><dfn id="rdf-iri">IRI</dfn></a
>,
<a href="http://www.w3.org/TR/rdf11-concepts/#dfn-literal"
><dfn id="rdf-literal">literal</dfn></a
>,
<a href="http://www.w3.org/TR/rdf11-concepts/#dfn-blank-node"
><dfn id="rdf-blank-node">blank node</dfn></a
>,
<a href="http://www.w3.org/TR/rdf11-concepts/#dfn-node"
><dfn id="rdf-node">node</dfn></a
>,
<a href="http://www.w3.org/TR/rdf11-concepts/#dfn-rdf-term"
><dfn id="rdf-term">term</dfn></a
>,
<a href="https://www.w3.org/TR/rdf11-concepts/#dfn-iri-equality"
><dfn id="rdf-iri-eqality">IRI equality</dfn></a
>
and
<a
href="https://www.w3.org/TR/rdf11-concepts/#dfn-literal-term-equality"
><dfn id="rdf-literal-term-eqality">literal term equality</dfn></a
>
as defined in RDF 1.1 Concepts and Abstract Syntax
<cite
><a class="bibref" href="#rdf11-concepts">RDF11 CONCEPTS</a></cite
>.
</p>
</section>
<section
datatype="rdf:HTML"
typeof="bibo:Chapter"
resource=":namespaces"
property="bibo:hasPart"
>
<h3 class="heading" id="namespaces">
<span class="secno">1.2. </span
><span class="content">RDF vocabularies and namespace IRIs</span
><a class="self-link" href="#namespaces"></a>
</h3>
<p>
This document uses the following RDF vocabularies and corresponding
namespace prefix bindings:
</p>
<table>
<thead>
<tr>
<th>Prefix</th>
<th>Namespace</th>
</tr>
</thead>
<tbody>
<tr about="acp:">
<td>
<code property="vann:preferredNamespacePrefix">acp:</code>
</td>
<td>
<code
><a
href="http://www.w3.org/ns/solid/acp#"
property="vann:preferredNamespaceUri"
>http://www.w3.org/ns/solid/acp#</a
></code
>
</td>
</tr>
<tr>
<td><code>acl:</code></td>
<td>
<code
><a href="http://www.w3.org/ns/auth/acl#"
>http://www.w3.org/ns/auth/acl#</a
></code
>
</td>
</tr>
<tr>
<td><code>ex:</code></td>
<td>
<code
><a href="https://example.org/"
>https://example.org/</a
></code
>
</td>
</tr>
<tr>
<td><code>ldp:</code></td>
<td>
<code
><a href="http://www.w3.org/ns/ldp#"
>http://www.w3.org/ns/ldp#</a
></code
>
</td>
</tr>
<tr>
<td><code>rdf:</code></td>
<td>
<code
><a href="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>http://www.w3.org/1999/02/22-rdf-syntax-ns#</a
></code
>
</td>
</tr>
<tr>
<td><code>rdfs:</code></td>
<td>
<code
><a href="http://www.w3.org/2000/01/rdf-schema#"
>http://www.w3.org/2000/01/rdf-schema#</a
></code
>
</td>
</tr>
<tr>
<td><code>owl:</code></td>
<td>
<code
><a href="http://www.w3.org/2002/07/owl#"
>http://www.w3.org/2002/07/owl#</a
></code
>
</td>
</tr>
</tbody>
</table>
</section>
<section
datatype="rdf:HTML"
typeof="bibo:Chapter"
resource=":acp-terminology"
property="bibo:hasPart"
>
<h3 class="heading" id="acp-terminology">
<span class="secno">1.3. </span
><span class="content">ACP terminology</span
><a class="self-link" href="#acp-terminology"></a>
</h3>
<p><em>This section is non-normative.</em></p>
<dl>
<dt id="acp-terminology-context-graph">Context graph</dt>
<dd>
<a href="#context-graph">Context graphs</a> describe the
attributes of resource access instances. An access request's
attributes can be matched to sets of conditions defined in the
form of an
<a href="#acp-terminology-authorization-graph"
>authorization graph</a
>
in order to determine Access Modes granted over resources.
</dd>
<dt id="acp-terminology-authorization-graph">
Authorization graph
</dt>
<dd>
<a href="#authorization-graph">Authorization graphs</a>
authoritatively define the conditions for granting Access Modes
over resources through Access Control Resources, Access Controls,
Policies and Matchers. The result of applying an authorization
graph to a described instance of resource access is an
<a href="#acp-terminology-access-grant-graph"
>access grant graph</a
>.
</dd>
<dt id="acp-terminology-access-grant-graph">Access grant graph</dt>
<dd>
<a href="#access-grant-graph">Access grant graphs</a> describe
sets of Access Modes granted over resources in the context of
resource access requests. Access grants are the result of
<a href="#acp-terminology-access-control-resolution"
>access control resolution</a
>.
</dd>
<dt id="acp-terminology-access-control-resolution">
Access control resolution
</dt>
<dd>
<a href="#access-control-resolution">Access control resolution</a>
describes the algorithm used to apply an authorization graph to a
context graph in order to obtain an access grant graph.
</dd>
</dl>
</section>
<section
datatype="rdf:HTML"
typeof="bibo:Chapter"
resource=":example-graphs"
property="bibo:hasPart"
>
<h3 class="heading" id="example-graphs">
<span class="secno">1.4. </span
><span class="content">Example graphs</span
><a class="self-link" href="#example-graphs"></a>
</h3>
<p><em>This section is non-normative.</em></p>
<p>
Throughout this document, color-coded boxes contain the RDF
representation of example context graphs, authorization graphs, and
access grant graphs serialized in
<a href="https://www.w3.org/TR/turtle/"
><dfn id="turtle-syntax">turtle</dfn></a
>
<cite><a class="bibref" href="#turtle">RDF11-TURTLE</a></cite
>. Those graphs use a mix of IRIs and blank nodes where applicable
to better show the range of possible representations.
</p>
<p>
The following example
<a href="#acp-terminology-context-graph">context graph</a> describes
an instance of resource access and could be translated as:
<em
>"Bob is trying to read resource X using client application Y with
their identity asserted by identity provider Z."</em
>.
</p>
<pre id="example-context-graph" class="example example-context-graph">
# This box contains a context graph
# It describes an instance of resource access
[]
acp:target ex:resourceX ;
acp:agent ex:Bob ;
acp:mode acl:Read ;
acp:client ex:clientApplicationY ;
acp:issuer ex:identityProviderZ .
</pre
>
<p>
The following example
<a href="#acp-terminology-authorization-graph"
>authorization graph</a
>
defines the conditions of access to resource X and could be
translated as:
<em
>"Access to resource X is mandated by one Access Control that
applies one Policy which allows access mode
<code>acl:Read</code> when Alice or Bob are the agent trying to
access resource X."</em
>.
</p>
<pre
id="example-authorization-graph"
class="example example-authorization-graph"
>
# This box contains an authorization graph
# It describes the conditions required for accessing a resource
[]
a acp:AccessControlResource ;
acp:resource ex:resourceX ;
acp:accessControl [
a acp:AccessControl ;
acp:apply [
a acp:Policy ;
acp:allow acl:Read ;
acp:anyOf [
a acp:Matcher ;
acp:agent ex:Alice, ex:Bob ;
]
]
] .
</pre
>
<p>
The following example
<a href="#acp-terminology-access-grant-graph">access grant graph</a>
is the result of
<a href="#acp-terminology-access-control-resolution">applying</a>
the previous example authorization graph which defines access to
resource X to the previous example context graph which describes a
read access request to target resource X. Bob is matched as the
context agent and since the policy allowing
<code>acl:Read</code> defines no further restrictions, it is
satisfied. The following access grant graph could be read as:
<em
>"The access mode <code>acl:Read</code> is granted to Bob who
requested read access to resource X using client application Y
with their identity asserted by identity provider Z."</em
>.
</p>
<pre
id="example-access-grant-graph"
class="example example-access-grant-graph"
>
# This box contains an access grant graph
# It describes in context the granted access over a resource
[]
acp:grant acl:Read ;
acp:context [
acp:agent ex:Bob ;
acp:target ex:resourceX ;
acp:mode acl:Read ;
acp:client ex:ClientApplicationY ;
acp:issuer ex:IdentityProviderZ ;
] .
</pre
>
</section>
<section
datatype="rdf:HTML"
typeof="bibo:Chapter"
resource=":data-model"
property="bibo:hasPart"
>
<h3 class="heading" id="data-model">
<span class="secno">1.5. </span
><span class="content">Data model</span
><a class="self-link" href="#data-model"></a>
</h3>
<p><em>This section is non-normative.</em></p>
<p>The following diagram illustrates the main elements of ACP.</p>
<img
alt="ACP Data Model"
src="./2022/acp-data-model-20220518.svg"
style="width: 100%"
/>
</section>
<section
datatype="rdf:HTML"
typeof="bibo:Chapter"
resource=":ontology"
property="bibo:hasPart"
>
<h3 class="heading" id="ontology">
<span class="secno">1.6. </span><span class="content">Ontology</span
><a class="self-link" href="#ontology"></a>
</h3>
<p>
All terms defined by the Access Control Policy Language are present
in an RDF representation of the
<a href="http://www.w3.org/ns/solid/acp#">ACP ontology serialized in turtle</a>.
</p>
</section>
</section>
<section
datatype="rdf:HTML"
typeof="bibo:Chapter"
resource=":conformance"
property="bibo:hasPart"
>
<h2 class="heading" id="conformance">
<span class="secno">2. </span><span class="content">Conformance</span
><a class="self-link" href="#conformance"></a>
</h2>
<p>
All assertions, diagrams, examples, pseudocode and notes are
non-normative, as are all sections explicitly marked non-normative.
Everything else is normative.
</p>
<p id="rfc2119-conformance">
The key words
<a href="https://datatracker.ietf.org/doc/html/rfc2119#section-1"
><dfn id="rfc2119-must">MUST</dfn></a
>,
<a href="https://datatracker.ietf.org/doc/html/rfc2119#section-2"
><dfn id="rfc2119-must-not">MUST NOT</dfn></a
>,
<a href="https://datatracker.ietf.org/doc/html/rfc2119#section-1"
><dfn id="rfc2119-required">REQUIRED</dfn></a
>,
<a href="https://datatracker.ietf.org/doc/html/rfc2119#section-1"
><dfn id="rfc2119-shall">SHALL</dfn></a
>,
<a href="https://datatracker.ietf.org/doc/html/rfc2119#section-2"
><dfn id="rfc2119-shall-not">SHALL NOT</dfn></a
>,
<a href="https://datatracker.ietf.org/doc/html/rfc2119#section-3"
><dfn id="rfc2119-should">SHOULD</dfn></a
>,
<a href="https://datatracker.ietf.org/doc/html/rfc2119#section-4"
><dfn id="rfc2119-should-not">SHOULD NOT</dfn></a
>,
<a href="https://datatracker.ietf.org/doc/html/rfc2119#section-3"
><dfn id="rfc2119-recommended">RECOMMENDED</dfn></a
>,
<a href="https://datatracker.ietf.org/doc/html/rfc2119#section-5"
><dfn id="rfc2119-may">MAY</dfn></a
>, and
<a href="https://datatracker.ietf.org/doc/html/rfc2119#section-5"
><dfn id="rfc2119-optional">OPTIONAL</dfn></a
>, are to be interpreted as defined in
<cite><a class="bibref" href="#rfc2119">RFC 2119</a></cite
>.
</p>
<p>
Only UPPERCASE usage of the key words defined in RFC 2119 have special
meanings, as per
<cite><a class="bibref" href="#rfc8174">RFC 8174</a></cite
>.
</p>
</section>
<section
datatype="rdf:HTML"
typeof="bibo:Chapter"
resource=":context-graph"