ldpatch-20150728.html
author Andrei Sambra <andrei@w3.org>
Fri, 24 Jul 2015 16:30:33 -0400
branchldpatch
changeset 977 535a33b19afd
parent 976 d4e249a5bf19
permissions -rw-r--r--
Made spec pubrules compliant
976
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
     1
<!DOCTYPE html>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
     2
<html style="" lang="en" dir="ltr" typeof="bibo:Document " prefix="bibo: http://purl.org/ontology/bibo/ w3p: http://www.w3.org/2001/02pd/rec54#"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta lang="" property="dc:language" content="en">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
     3
    <title>Linked Data Patch Format</title>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
     4
    <meta charset="utf-8">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
     5
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
     6
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
     7
    <style type="text/css">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
     8
.atrisk {
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
     9
  padding:    1em;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    10
  margin: 1em 0em 0em;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    11
  border: 1px solid #f00;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    12
  background: #ffc;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    13
}
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    14
.atrisktext {
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    15
  /* content:    "Feature At Risk"; */
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    16
  display:    block;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    17
  width:  150px;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    18
  margin: -1.5em 0 0.5em 0;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    19
  font-weight:    bold;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    20
  border: 1px solid #f00;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    21
  background: #fff;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    22
  padding:    3px 1em;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    23
}
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    24
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    25
div.rule {padding-top: 1em;}
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    26
div.ldp-issue {
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    27
  border-color: #E05252;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    28
  background: #FBE9E9;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    29
  padding: 0.5em;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    30
  margin: 1em 0;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    31
  position: relative;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    32
  clear: both;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    33
  border-left-width: .5em;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    34
  border-left-style: solid;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    35
}
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    36
div.ldp-issue-title {
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    37
  color: #E05252;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    38
  padding-right: 1em;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    39
  min-width: 7.5em;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    40
}
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    41
    </style>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    42
  <style type="text/css"></style><style>/*****************************************************************
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    43
 * ReSpec 3 CSS
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    44
 * Robin Berjon - http://berjon.com/
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    45
 *****************************************************************/
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    46
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    47
/* --- INLINES --- */
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    48
em.rfc2119 {
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    49
    text-transform:     lowercase;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    50
    font-variant:       small-caps;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    51
    font-style:         normal;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    52
    color:              #900;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    53
}
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    54
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    55
h1 acronym, h2 acronym, h3 acronym, h4 acronym, h5 acronym, h6 acronym, a acronym,
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    56
h1 abbr, h2 abbr, h3 abbr, h4 abbr, h5 abbr, h6 abbr, a abbr {
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    57
    border: none;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    58
}
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    59
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    60
dfn {
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    61
    font-weight:    bold;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    62
}
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    63
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    64
a.internalDFN {
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    65
    color:  inherit;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    66
    border-bottom:  1px solid #99c;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    67
    text-decoration:    none;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    68
}
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    69
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    70
a.externalDFN {
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    71
    color:  inherit;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    72
    border-bottom:  1px dotted #ccc;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    73
    text-decoration:    none;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    74
}
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    75
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    76
a.bibref {
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    77
    text-decoration:    none;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    78
}
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    79
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    80
cite .bibref {
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    81
    font-style: normal;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    82
}
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    83
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    84
code {
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    85
    color:  #C83500;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    86
}
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    87
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    88
/* --- TOC --- */
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    89
.toc a, .tof a {
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    90
    text-decoration:    none;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    91
}
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    92
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    93
a .secno, a .figno {
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    94
    color:  #000;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    95
}
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    96
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    97
ul.tof, ol.tof {
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    98
    list-style: none outside none;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
    99
}
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   100
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   101
.caption {
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   102
    margin-top: 0.5em;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   103
    font-style:   italic;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   104
}
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   105
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   106
/* --- TABLE --- */
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   107
table.simple {
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   108
    border-spacing: 0;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   109
    border-collapse:    collapse;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   110
    border-bottom:  3px solid #005a9c;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   111
}
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   112
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   113
.simple th {
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   114
    background: #005a9c;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   115
    color:  #fff;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   116
    padding:    3px 5px;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   117
    text-align: left;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   118
}
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   119
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   120
.simple th[scope="row"] {
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   121
    background: inherit;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   122
    color:  inherit;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   123
    border-top: 1px solid #ddd;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   124
}
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   125
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   126
.simple td {
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   127
    padding:    3px 10px;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   128
    border-top: 1px solid #ddd;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   129
}
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   130
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   131
.simple tr:nth-child(even) {
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   132
    background: #f0f6ff;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   133
}
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   134
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   135
/* --- DL --- */
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   136
.section dd > p:first-child {
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   137
    margin-top: 0;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   138
}
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   139
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   140
.section dd > p:last-child {
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   141
    margin-bottom: 0;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   142
}
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   143
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   144
.section dd {
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   145
    margin-bottom:  1em;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   146
}
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   147
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   148
.section dl.attrs dd, .section dl.eldef dd {
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   149
    margin-bottom:  0;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   150
}
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   151
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   152
@media print {
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   153
    .removeOnSave {
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   154
        display: none;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   155
    }
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   156
}
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   157
</style><style>/* --- EXAMPLES --- */
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   158
div.example-title {
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   159
    min-width: 7.5em;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   160
    color: #b9ab2d;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   161
}
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   162
div.example-title span {
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   163
    text-transform: uppercase;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   164
}
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   165
aside.example, div.example, div.illegal-example {
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   166
    padding: 0.5em;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   167
    margin: 1em 0;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   168
    position: relative;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   169
    clear: both;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   170
}
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   171
div.illegal-example { color: red }
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   172
div.illegal-example p { color: black }
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   173
aside.example, div.example {
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   174
    padding: .5em;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   175
    border-left-width: .5em;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   176
    border-left-style: solid;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   177
    border-color: #e0cb52;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   178
    background: #fcfaee;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   179
}
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   180
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   181
aside.example div.example {
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   182
    border-left-width: .1em;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   183
    border-color: #999;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   184
    background: #fff;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   185
}
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   186
aside.example div.example div.example-title {
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   187
    color: #999;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   188
}
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   189
</style><link rel="stylesheet" href="https://www.w3.org/StyleSheets/TR/W3C-WG-NOTE"><!--[if lt IE 9]><script src='https://www.w3.org/2008/site/js/html5shiv.js'></script><![endif]--></head>
977
535a33b19afd Made spec pubrules compliant
Andrei Sambra <andrei@w3.org>
parents: 976
diff changeset
   190
  <body class="h-entry" data-feedly-mini="yes" id="respecDocument"><div class="head" role="contentinfo" id="respecHeader">
976
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   191
  <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   192
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   193
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   194
            <a href="http://www.w3.org/"><img width="72" height="48" src="http://www.w3.org/Icons/w3c_home" alt="W3C"></a>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   195
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   196
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   197
  </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   198
  <h1 class="title p-name" id="title" property="dcterms:title">Linked Data Patch Format</h1>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   199
977
535a33b19afd Made spec pubrules compliant
Andrei Sambra <andrei@w3.org>
parents: 976
diff changeset
   200
  <h2 id="w3c-working-group-note-24-july-2015"><abbr title="World Wide Web Consortium">W3C</abbr> Working Group Note <time property="dcterms:issued" class="dt-published" datetime="2015-07-28">28 July 2015</time></h2>
976
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   201
  <dl>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   202
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   203
      <dt>This version:</dt>
977
535a33b19afd Made spec pubrules compliant
Andrei Sambra <andrei@w3.org>
parents: 976
diff changeset
   204
      <dd><a class="u-url" href="http://www.w3.org/TR/2015/NOTE-ldpatch-20150728/">http://www.w3.org/TR/2015/NOTE-ldpatch-20150728/</a></dd>
976
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   205
      <dt>Latest published version:</dt>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   206
      <dd><a href="http://www.w3.org/TR/ldpatch/">http://www.w3.org/TR/ldpatch/</a></dd>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   207
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   208
      <dt>Latest editor's draft:</dt>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   209
      <dd><a href="https://dvcs.w3.org/hg/ldpwg/raw-file/ldpatch/ldpatch.html">https://dvcs.w3.org/hg/ldpwg/raw-file/ldpatch/ldpatch.html</a></dd>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   210
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   211
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   212
      <dt>Test suite:</dt>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   213
      <dd><a href="https://github.com/pchampin/ld-patch-testsuite">https://github.com/pchampin/ld-patch-testsuite</a></dd>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   214
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   215
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   216
      <dt>Implementation report:</dt>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   217
      <dd><a href="https://dvcs.w3.org/hg/ldpwg/raw-file/tip/tests/ldpatch/reports/ldpatch.html">https://dvcs.w3.org/hg/ldpwg/raw-file/tip/tests/ldpatch/reports/ldpatch.html</a></dd>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   218
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   219
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   220
      <dt>Previous version:</dt>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   221
      <dd><a rel="dcterms:replaces" href="http://www.w3.org/TR/2015/CR-ldpatch-20150303/">http://www.w3.org/TR/2015/CR-ldpatch-20150303/</a></dd>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   222
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   223
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   224
    <dt>Editors:</dt>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   225
    <dd class="p-author h-card vcard" property="bibo:editor" resource="_:editor0"><span property="rdf:first" typeof="foaf:Person"><meta property="foaf:name" content="Alexandre Bertails"><a class="u-url url p-name fn" property="foaf:homepage" href="http://bertails.org/">Alexandre Bertails</a>, <span class="ed_mailto"><a class="u-email email" property="foaf:mbox" href="mailto:alexandre@bertails.org">alexandre@bertails.org</a></span></span>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   226
<span property="rdf:rest" resource="_:editor1"></span>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   227
</dd>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   228
<dd class="p-author h-card vcard" resource="_:editor1"><span property="rdf:first" typeof="foaf:Person"><meta property="foaf:name" content="Pierre-Antoine Champin"><a class="u-url url p-name fn" property="foaf:homepage" href="http://liris.cnrs.fr/~pchampin/en/">Pierre-Antoine Champin</a>, <a property="foaf:workplaceHomepage" class="p-org org h-org h-card" href="http://www.universite-lyon.fr/">Université de Lyon</a>, <span class="ed_mailto"><a class="u-email email" property="foaf:mbox" href="mailto:pchampin@liris.cnrs.fr">pchampin@liris.cnrs.fr</a></span></span>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   229
<span property="rdf:rest" resource="_:editor2"></span>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   230
</dd>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   231
<dd class="p-author h-card vcard" resource="_:editor2"><span property="rdf:first" typeof="foaf:Person"><meta property="foaf:name" content="Andrei Sambra"><a class="u-url url p-name fn" property="foaf:homepage" href="https://deiu.me/profile#me">Andrei Sambra</a>, <a property="foaf:workplaceHomepage" class="p-org org h-org h-card" href="http://www.w3.org/"><abbr title="Massachusetts Institute of Technology">MIT</abbr>/<abbr title="World Wide Web Consortium">W3C</abbr></a>, <span class="ed_mailto"><a class="u-email email" property="foaf:mbox" href="mailto:andrei@w3.org">andrei@w3.org</a></span></span>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   232
<span property="rdf:rest" resource="rdf:nil"></span>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   233
</dd>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   234
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   235
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   236
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   237
  </dl>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   238
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   239
      <p class="copyright">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   240
        <a href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> ©
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   241
        2015
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   242
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   243
        <a href="http://www.w3.org/"><abbr title="World Wide Web Consortium">W3C</abbr></a><sup>®</sup>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   244
        (<a href="http://www.csail.mit.edu/"><abbr title="Massachusetts Institute of Technology">MIT</abbr></a>,
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   245
        <a href="http://www.ercim.eu/"><abbr title="European Research Consortium for Informatics and Mathematics">ERCIM</abbr></a>,
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   246
        <a href="http://www.keio.ac.jp/">Keio</a>, <a href="http://ev.buaa.edu.cn/">Beihang</a>).
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   247
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   248
        <abbr title="World Wide Web Consortium">W3C</abbr> <a href="http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">liability</a>,
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   249
        <a href="http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">trademark</a> and
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   250
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   251
          <a href="http://www.w3.org/Consortium/Legal/copyright-documents">document use</a>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   252
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   253
        rules apply.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   254
      </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   255
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   256
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   257
  <hr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   258
</div>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   259
    <section id="abstract" class="introductory" property="dc:abstract"><h2 id="h-abstract" resource="#h-abstract"><span property="xhv:role" resource="xhv:heading">Abstract</span></h2>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   260
      <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   261
Linked Data Patch Format (LD Patch) defines a language for expressing a sequence of operations for patching Linked Data resources; it is suitable for use with the HTTP PATCH method.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   262
      </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   263
    </section><section id="sotd" class="introductory"><h2 id="h-sotd" resource="#h-sotd"><span property="xhv:role" resource="xhv:heading">Status of This Document</span></h2>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   264
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   265
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   266
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   267
        <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   268
          <em>This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current <abbr title="World Wide Web Consortium">W3C</abbr> publications and the latest revision of this technical report can be found in the <a href="http://www.w3.org/TR/"><abbr title="World Wide Web Consortium">W3C</abbr> technical reports index</a> at http://www.w3.org/TR/.</em>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   269
        </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   270
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   271
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   272
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   273
      <p id="alternative-designs">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   274
 	Although the Linked Data Platform (LDP) Working Group is currently favoring LD Patch, it seeks more input in deciding which format to promote for use in <a href="http://www.w3.org/TR/ldp/#ldpr-HTTP_PATCH">LDP PATCH</a> [<cite><a class="bibref" href="#bib-LDP">LDP</a></cite>] operations on <a href="http://www.w3.org/TR/ldp/#ldprs">LDP RDF Sources</a>.  Other viable candidates include:</p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   275
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   276
      <ul>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   277
      	<li><a href="http://www.w3.org/TR/sparql11-http-rdf-update/#http-patch">SPARQL 1.1 Update</a> — already standardized, but quite complex for LDP scenarios</li>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   278
      	<li><a href="http://www.w3.org/2001/sw/wiki/SparqlPatch">SparqlPatch</a> — restricted to a simple subset of SPARQL 1.1 Update</li>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   279
      	<li><a href="http://www.w3.org/2001/sw/wiki/TurtlePatch">TurtlePatch</a> — uses an even simpler subset, but requires unusual handling of blank nodes</li>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   280
      	<li><a href="http://afs.github.io/rdf-patch/">RDF Patch</a> — simple, but also requires unusual handling of blank nodes</li>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   281
      </ul>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   282
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   283
      <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   284
       At this point, the advantage leans towards LD Patch in terms of simplicity, ease of implementation, and run-time performance on anticipated data.  We welcome data relevant to this decision.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   285
      </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   286
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   287
      <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   288
        This specification was previously published as a Candidate Recommendation (CR). Due to lack of sufficient implementations to meet the CR exit criteria within the time remaining under the current charter, the Working Group decided to take it off the <abbr title="World Wide Web Consortium">W3C</abbr> Recommendation track and publish it as a <abbr title="World Wide Web Consortium">W3C</abbr> Note for future reference. This document may be reused in part or in whole by another WG in the future, or not.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   289
      </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   290
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   291
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   292
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   293
        <p>
977
535a33b19afd Made spec pubrules compliant
Andrei Sambra <andrei@w3.org>
parents: 976
diff changeset
   294
          This document was published by the <a href="http://www.w3.org/2012/ldp/">Linked Data Platform Working Group</a> as a Working Group Note.
976
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   295
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   296
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   297
            If you wish to make comments regarding this document, please send them to
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   298
            <a href="mailto:public-ldp-comments@w3.org">public-ldp-comments@w3.org</a>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   299
            (<a href="mailto:public-ldp-comments-request@w3.org?subject=subscribe">subscribe</a>,
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   300
            <a href="http://lists.w3.org/Archives/Public/public-ldp-comments/">archives</a>).
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   301
            All comments are welcome.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   302
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   303
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   304
        </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   305
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   306
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   307
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   308
          <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   309
            Publication as a Working Group Note does not imply endorsement by the <abbr title="World Wide Web Consortium">W3C</abbr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   310
            Membership. This is a draft document and may be updated, replaced or obsoleted by other
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   311
            documents at any time. It is inappropriate to cite this document as other than work in
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   312
            progress.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   313
          </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   314
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   315
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   316
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   317
        <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   318
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   319
            This document was produced by a group operating under the
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   320
            <a id="sotd_patent" property="w3p:patentRules" href="http://www.w3.org/Consortium/Patent-Policy-20040205/">5 February 2004 <abbr title="World Wide Web Consortium">W3C</abbr> Patent
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   321
            Policy</a>.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   322
977
535a33b19afd Made spec pubrules compliant
Andrei Sambra <andrei@w3.org>
parents: 976
diff changeset
   323
              <abbr title="World Wide Web Consortium">W3C</abbr> maintains a <a href="http://www.w3.org/2004/01/pp-impl/55082/status" rel="disclosure">public list of any patent
976
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   324
              disclosures</a>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   325
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   326
            made in connection with the deliverables of the group; that page also includes
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   327
            instructions for disclosing a patent. An individual who has actual knowledge of a patent
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   328
            which the individual believes contains
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   329
            <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/#def-essential">Essential
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   330
            Claim(s)</a> must disclose the information in accordance with
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   331
            <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/#sec-Disclosure">section
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   332
            6 of the <abbr title="World Wide Web Consortium">W3C</abbr> Patent Policy</a>.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   333
        </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   334
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   335
          <p>This document is governed by the <a id="w3c_process_revision" href="http://www.w3.org/2014/Process-20140801/">1 August 2014 <abbr title="World Wide Web Consortium">W3C</abbr> Process Document</a>.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   336
          </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   337
977
535a33b19afd Made spec pubrules compliant
Andrei Sambra <andrei@w3.org>
parents: 976
diff changeset
   338
</section>
976
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   339
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   340
977
535a33b19afd Made spec pubrules compliant
Andrei Sambra <andrei@w3.org>
parents: 976
diff changeset
   341
<section id="toc"><h2 class="introductory" id="h-toc" resource="#h-toc"><span property="xhv:role" resource="xhv:heading">Table of Contents</span></h2><ul class="toc" role="directory" id="respecContents"><li class="tocline"><a href="#introduction" class="tocxref"><span class="secno">1. </span>Introduction</a></li><li class="tocline"><a href="#examples" class="tocxref"><span class="secno">2. </span>Examples</a><ul class="toc"><li class="tocline"><a href="#full-example" class="tocxref"><span class="secno">2.1 </span>Full example</a></li><li class="tocline"><a href="#list-manipulation-examples" class="tocxref"><span class="secno">2.2 </span><code>rdf:List</code> manipulation examples</a></li></ul></li><li class="tocline"><a href="#conformance" class="tocxref"><span class="secno">3. </span>Conformance</a></li><li class="tocline"><a href="#semantics" class="tocxref"><span class="secno">4. </span>LD Patch Semantics</a><ul class="toc"><li class="tocline"><a href="#nodes-and-triples-semantics" class="tocxref"><span class="secno">4.1 </span><span data-dfn-type="dfn">Nodes and triples Semantics</span></a></li><li class="tocline"><a href="#path-expression" class="tocxref"><span class="secno">4.2 </span><span data-dfn-type="dfn">Path Expression</span></a></li><li class="tocline"><a href="#patch-operations" class="tocxref"><span class="secno">4.3 </span>Patch Operations</a><ul class="toc"><li class="tocline"><a href="#Bind-statement" class="tocxref"><span class="secno">4.3.1 </span><span data-dfn-type="dfn">Bind</span></a></li><li class="tocline"><a href="#Add-statement" class="tocxref"><span class="secno">4.3.2 </span><span data-dfn-type="dfn">Add</span></a></li><li class="tocline"><a href="#AddNew-statement" class="tocxref"><span class="secno">4.3.3 </span><span data-dfn-type="dfn">AddNew</span></a></li><li class="tocline"><a href="#Delete-statement" class="tocxref"><span class="secno">4.3.4 </span><span data-dfn-type="dfn">Delete</span></a></li><li class="tocline"><a href="#DeleteExisting-statement" class="tocxref"><span class="secno">4.3.5 </span><span data-dfn-type="dfn">DeleteExisting</span></a></li><li class="tocline"><a href="#Cut-statement" class="tocxref"><span class="secno">4.3.6 </span><span data-dfn-type="dfn">Cut</span></a></li><li class="tocline"><a href="#UpdateList-statement" class="tocxref"><span class="secno">4.3.7 </span><span data-dfn-type="dfn">UpdateList</span></a></li><li class="tocline"><a href="#error-handling" class="tocxref"><span class="secno">4.3.8 </span><span data-dfn-type="dfn">Error Handling</span></a></li><li class="tocline"><a href="#pathological-graph" class="tocxref"><span class="secno">4.3.9 </span><span data-dfn-type="dfn">Pathological Graph</span></a></li></ul></li></ul></li><li class="tocline"><a href="#turtle-sparql-comparison" class="tocxref"><span class="secno">5. </span>LD Patch compared to Turtle and SPARQL</a></li><li class="tocline"><a href="#concrete-syntax" class="tocxref"><span class="secno">6. </span>Concrete Syntax</a></li><li class="tocline"><a href="#updatelist-algo" class="tocxref"><span class="secno">A. </span>UpdateList Algorithm</a></li><li class="tocline"><a href="#media-registration" class="tocxref"><span class="secno">B. </span>Internet Media Type, File Extension and Macintosh File Type</a></li><li class="tocline"><a href="#acknowledgements" class="tocxref"><span class="secno">C. </span>Acknowledgements</a></li><li class="tocline"><a href="#changelog" class="tocxref"><span class="secno">D. </span>Change Log</a><ul class="toc"><li class="tocline"><a href="#changes-since-march-2015-candidate-recommendation" class="tocxref"><span class="secno">D.1 </span>Changes since <span class="formerLink">March 2015 Candidate Recommendation</span></a></li><li class="tocline"><a href="#changes-since-september-2014-first-public-working-draft" class="tocxref"><span class="secno">D.2 </span>Changes since <span class="formerLink">September 2014 First Public Working Draft</span></a></li></ul></li><li class="tocline"><a href="#references" class="tocxref"><span class="secno">E. </span>References</a><ul class="toc"><li class="tocline"><a href="#normative-references" class="tocxref"><span class="secno">E.1 </span>Normative references</a></li><li class="tocline"><a href="#informative-references" class="tocxref"><span class="secno">E.2 </span>Informative references</a></li></ul></li></ul></section>
976
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   342
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   343
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   344
    <section class="informative" id="introduction" typeof="bibo:Chapter" resource="#introduction" property="bibo:hasPart">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   345
      <!--OddPage--><h2 id="h-introduction" resource="#h-introduction"><span property="xhv:role" resource="xhv:heading"><span class="secno">1. </span>Introduction</span></h2><p><em>This section is non-normative.</em></p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   346
      <p>
977
535a33b19afd Made spec pubrules compliant
Andrei Sambra <andrei@w3.org>
parents: 976
diff changeset
   347
          Linked Data <q cite="https://en.wikipedia.org/wiki/Linked_data">describes a method of publishing structured data so that it can be interlinked and become more useful. It builds upon standard Web technologies such as HTTP, RDF and IRIs, but rather than using them to serve web pages for human readers, it extends them to share information in a way that can be read automatically by computers. This enables data from different sources to be connected and queried.</q> (source Wikipedia).
976
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   348
      </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   349
      <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   350
This document defines the Linked Data Patch Format (LD Patch), a format for describing changes to apply to Linked Data. It is suitable for use with <a href="http://tools.ietf.org/html/rfc5789">HTTP PATCH</a> [<cite><a class="bibref" href="#bib-RFC5789">RFC5789</a></cite>], a method to perform partial modifications to Web resources.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   351
      </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   352
      <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   353
          An instance of the LD Patch language (or LD Patch document) defines a list of operations to be performed against a Linked Data resource, namely the addition or removal of RDF [<cite><a class="bibref" href="#bib-rdf11-concepts">rdf11-concepts</a></cite>] triples in the graph representing this resource.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   354
      </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   355
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   356
      <p id="relation-sparql-update">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   357
        The LD Patch format described in this document should be seen as a language for updating <a class="externalDFN" href="http://www.w3.org/TR/rdf11-concepts/#section-rdf-graph">RDF Graphs</a> in a resource-centric fashion. It is the intention to confine its expressive power to an RDF diff with <a class="internalDFN" href="#pathological-graph">partial support for blank nodes</a> and <code>rdf:List</code> manipulations. For more powerful operations on RDF Graphs and Quad Stores, the LDP WG recommends the reader to consider <a href="http://www.w3.org/TR/sparql11-update/">SPARQL Update</a> [<cite><a class="bibref" href="#bib-sparql11-update">sparql11-update</a></cite>].
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   358
      </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   359
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   360
    </section>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   361
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   362
    <section id="examples" class="informative" typeof="bibo:Chapter" resource="#examples" property="bibo:hasPart">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   363
      <!--OddPage--><h2 id="h-examples" resource="#h-examples"><span property="xhv:role" resource="xhv:heading"><span class="secno">2. </span>Examples</span></h2><p><em>This section is non-normative.</em></p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   364
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   365
      <section id="full-example" typeof="bibo:Chapter" resource="#full-example" property="bibo:hasPart">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   366
          <h3 id="h-full-example" resource="#h-full-example"><span property="xhv:role" resource="xhv:heading"><span class="secno">2.1 </span>Full example</span></h3>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   367
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   368
          <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   369
              The following RDF Graph describes the relation between a person named Tim Berners-Lee (denoted by <code>&lt;http://example.org/timbl#&gt;</code>) and two events he attended.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   370
          </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   371
          <div class="example"><div class="example-title"><span>Example 1</span></div><pre class="example">@prefix schema: &lt;http://schema.org/&gt; .
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   372
@prefix profile: &lt;http://ogp.me/ns/profile#&gt; .
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   373
@prefix ex: &lt;http://example.org/vocab#&gt; .
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   374
@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   375
&lt;#&gt; a schema:Person ;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   376
  schema:alternateName "TimBL" ;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   377
  profile:first_name "Tim" ;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   378
  profile:last_name "Berners-Lee" ;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   379
  schema:workLocation [ schema:name "W3C/MIT" ] ;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   380
  schema:performerIn _:b1, _:b2 ;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   381
  ex:preferredLanguages ( "en" "fr" ).
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   382
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   383
_:b1 schema:name "F2F5 - Linked Data Platform" ;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   384
  schema:url &lt;https://www.w3.org/2012/ldp/wiki/F2F5&gt; .
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   385
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   386
_:b2 a schema:Event ;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   387
  schema:name "TED 2009" ;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   388
  schema:startDate "2009-02-04" ;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   389
  schema:url &lt;http://conferences.ted.com/TED2009/&gt; .</pre></div>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   390
          <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   391
              The following is an example HTTP Patch request, conveying an LD Patch document:
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   392
          </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   393
          <div class="example"><div class="example-title"><span>Example 2</span></div><pre class="example">PATCH /timbl HTTP/1.1
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   394
Host: example.org
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   395
Content-Length: 478
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   396
Content-Type: text/ldpatch
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   397
If-Match: "abc123"
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   398
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   399
@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   400
@prefix schema: &lt;http://schema.org/&gt; .
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   401
@prefix profile: &lt;http://ogp.me/ns/profile#&gt; .
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   402
@prefix ex: &lt;http://example.org/vocab#&gt; .
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   403
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   404
Delete { &lt;#&gt; profile:first_name "Tim" } .
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   405
Add {
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   406
  &lt;#&gt; profile:first_name "Timothy" ;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   407
    profile:image &lt;https://example.org/timbl.jpg&gt; .
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   408
} .
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   409
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   410
Bind ?workLocation &lt;#&gt; / schema:workLocation .
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   411
Cut ?workLocation .
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   412
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   413
UpdateList &lt;#&gt; ex:preferredLanguages 1..2 ( "fr-CH" ) .
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   414
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   415
Bind ?event &lt;#&gt; / schema:performerIn [ / schema:url = &lt;https://www.w3.org/2012/ldp/wiki/F2F5&gt; ]  .
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   416
Add { ?event rdf:type schema:Event } .
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   417
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   418
Bind ?ted &lt;http://conferences.ted.com/TED2009/&gt; / ^schema:url ! .
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   419
Delete { ?ted schema:startDate "2009-02-04" } .
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   420
Add {
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   421
  ?ted schema:location [
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   422
    schema:name "Long Beach, California" ;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   423
    schema:geo [
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   424
      schema:latitude "33.7817" ;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   425
      schema:longitude "-118.2054"
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   426
    ]
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   427
  ]
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   428
} .</pre></div>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   429
          <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   430
              This example introduces most features of the LD Patch format: <code>@prefix</code> and prefixed names, the <a href="#dfn-add" class="internalDFN" data-link-type="dfn">Add</a>, <a href="#dfn-delete" class="internalDFN" data-link-type="dfn">Delete</a>, <a href="#dfn-cut" class="internalDFN" data-link-type="dfn">Cut</a>, and <a href="#dfn-updatelist" class="internalDFN" data-link-type="dfn">UpdateList</a> operations, the node <a href="#dfn-bind" class="internalDFN" data-link-type="dfn">Bind</a>ing mechanism, and blank node creation. The "text/ldpatch" media type is <a href="#media-registration">prospectively</a> used to identify such LD Patch documents.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   431
          </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   432
          <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   433
              The following is the resulting (patched) document.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   434
          </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   435
          <div class="example"><div class="example-title"><span>Example 3</span></div><pre class="example">@prefix schema: &lt;http://schema.org/&gt; .
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   436
@prefix profile: &lt;http://ogp.me/ns/profile#&gt; .
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   437
@prefix ex: &lt;http://example.org/vocab#&gt; .
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   438
@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   439
&lt;#&gt; a schema:Person ;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   440
  schema:alternateName "TimBL" ;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   441
  profile:first_name "Timothy" ;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   442
  profile:last_name "Berners-Lee" ;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   443
  profile:image &lt;https://example.org/timbl.jpg&gt; ;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   444
  schema:performerIn _:b1, _:b2 ;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   445
  ex:preferredLanguages ( "en" "fr-CH" ) .
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   446
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   447
_:b1 a schema:Event ;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   448
  schema:name "F2F5 - Linked Data Platform" ;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   449
  schema:url &lt;https://www.w3.org/2012/ldp/wiki/F2F5&gt; .
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   450
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   451
_:b2 a schema:Event ;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   452
  schema:name "TED 2009" ;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   453
  schema:url &lt;http://conferences.ted.com/TED2009/&gt; ;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   454
  schema:location [
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   455
    schema:name "Long Beach, California";
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   456
    schema:geo [ schema:latitude "33.7817" ; schema:longitude "-118.2054" ]
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   457
  ] .</pre></div>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   458
      </section>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   459
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   460
      <section id="list-manipulation-examples" typeof="bibo:Chapter" resource="#list-manipulation-examples" property="bibo:hasPart">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   461
          <h3 id="h-list-manipulation-examples" resource="#h-list-manipulation-examples"><span property="xhv:role" resource="xhv:heading"><span class="secno">2.2 </span><code>rdf:List</code> manipulation examples</span></h3>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   462
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   463
          <p>All the LD Patch examples in this section are applied against the following RDF graph (target IRI <code>http://example.org/timbl</code>):</p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   464
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   465
          <div class="example"><div class="example-title"><span>Example 4</span></div><pre class="example">&lt;#&gt; &lt;http://example.org/vocab#preferredLanguages&gt; ( "lorem" "ipsum" "dolor" "sit" "amet" ) .</pre></div>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   466
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   467
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   468
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   469
          <h3 id="replace-elements">How to replace elements</h3>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   470
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   471
          <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   472
              This example shows how to replace one element (here the second one) with a new one:
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   473
          </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   474
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   475
          <div class="example"><div class="example-title"><span>Example 5</span></div><pre class="example">UpdateList &lt;#&gt; &lt;http://example.org/vocab#preferredLanguages&gt; 1..2 ( "fr" ) .</pre></div>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   476
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   477
          <p>Output graph:</p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   478
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   479
          <div class="example"><div class="example-title"><span>Example 6</span></div><pre class="example">&lt;#&gt; &lt;http://example.org/vocab#preferredLanguages&gt; ( "lorem" "fr" "dolor" "sit" "amet" ) .</pre></div>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   480
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   481
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   482
          <h3 id="insert-new-elements">How to insert new elements</h3>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   483
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   484
          <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   485
              This example shows how to insert new elements at a specific index (here <code>2</code>):
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   486
          </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   487
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   488
          <div class="example"><div class="example-title"><span>Example 7</span></div><pre class="example">UpdateList &lt;#&gt; &lt;http://example.org/vocab#preferredLanguages&gt; 2..2 ( "en" "fr" ) .</pre></div>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   489
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   490
          <p>Output graph:</p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   491
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   492
          <div class="example"><div class="example-title"><span>Example 8</span></div><pre class="example">&lt;#&gt; &lt;http://example.org/vocab#preferredLanguages&gt; ( "lorem" "ipsum" "en" "fr" "dolor" "sit" "amet" ) .</pre></div>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   493
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   494
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   495
          <h3 id="append-elements">How to append elements</h3>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   496
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   497
          <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   498
              This example shows how to append elements at the end of a collection:
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   499
          </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   500
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   501
          <div class="example"><div class="example-title"><span>Example 9</span></div><pre class="example">UpdateList &lt;#&gt; &lt;http://example.org/vocab#preferredLanguages&gt; .. ( "en" "fr" ) .</pre></div>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   502
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   503
          <p>Output graph:</p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   504
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   505
          <div class="example"><div class="example-title"><span>Example 10</span></div><pre class="example">&lt;#&gt; &lt;http://example.org/vocab#preferredLanguages&gt; ( "lorem" "ipsum" "dolor" "sit" "amet" "en" "fr" ) .</pre></div>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   506
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   507
977
535a33b19afd Made spec pubrules compliant
Andrei Sambra <andrei@w3.org>
parents: 976
diff changeset
   508
          <h3 id="replace-elements-after-index">How to replace all the elements after a given index</h3>
976
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   509
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   510
          <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   511
              This example shows how to replace all the elements after the index <code>2</code> with the provided collection:
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   512
          </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   513
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   514
          <div class="example"><div class="example-title"><span>Example 11</span></div><pre class="example">UpdateList &lt;#&gt; &lt;http://example.org/vocab#preferredLanguages&gt; 2.. ( "en" "fr" ) .</pre></div>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   515
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   516
          <p>Output graph:</p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   517
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   518
          <div class="example"><div class="example-title"><span>Example 12</span></div><pre class="example">&lt;#&gt; &lt;http://example.org/vocab#preferredLanguages&gt; ( "lorem" "ipsum" "en" "fr" ) .</pre></div>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   519
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   520
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   521
          <h3 id="replace-elements-from-end-of-list">How to replace the n last elements</h3>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   522
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   523
          <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   524
              This example shows how to replace the last <code>3</code> elements of the provided collection:
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   525
          </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   526
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   527
          <div class="example"><div class="example-title"><span>Example 13</span></div><pre class="example">UpdateList &lt;#&gt; &lt;http://example.org/vocab#preferredLanguages&gt; -3.. ( "en" "fr" ) .</pre></div>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   528
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   529
          <p>Output graph:</p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   530
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   531
          <div class="example"><div class="example-title"><span>Example 14</span></div><pre class="example">&lt;#&gt; &lt;http://example.org/vocab#preferredLanguages&gt; ( "lorem" "ipsum" "en" "fr" ) .</pre></div>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   532
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   533
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   534
          <h3 id="remove-elements">How to remove elements</h3>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   535
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   536
          <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   537
              This example shows how to remove elements (here the second and the third) from a collection:
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   538
          </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   539
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   540
          <div class="example"><div class="example-title"><span>Example 15</span></div><pre class="example">UpdateList &lt;#&gt; &lt;http://example.org/vocab#preferredLanguages&gt; 1..3 ( ) .</pre></div>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   541
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   542
          <p>Output graph:</p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   543
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   544
          <div class="example"><div class="example-title"><span>Example 16</span></div><pre class="example">&lt;#&gt; &lt;http://example.org/vocab#preferredLanguages&gt; ( "lorem" "sit" "amet" ) .</pre></div>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   545
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   546
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   547
          <h3 id="empty-collection">How to empty a collection</h3>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   548
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   549
          <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   550
              Finally, this example shows how to empty a collection:
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   551
          </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   552
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   553
          <div class="example"><div class="example-title"><span>Example 17</span></div><pre class="example">UpdateList &lt;#&gt; &lt;http://example.org/vocab#preferredLanguages&gt; 0.. ( ) .</pre></div>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   554
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   555
          <p>Output graph:</p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   556
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   557
          <div class="example"><div class="example-title"><span>Example 18</span></div><pre class="example">&lt;#&gt; &lt;http://example.org/vocab#preferredLanguages&gt; ( ) .</pre></div>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   558
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   559
      </section>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   560
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   561
    </section>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   562
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   563
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   564
    <section class="normative" id="conformance" typeof="bibo:Chapter" resource="#conformance" property="bibo:hasPart"><!--OddPage--><h2 id="h-conformance" resource="#h-conformance"><span property="xhv:role" resource="xhv:heading"><span class="secno">3. </span>Conformance</span></h2>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   565
<p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   566
  As well as sections marked as non-normative, all authoring guidelines, diagrams, examples,
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   567
  and notes in this specification are non-normative. Everything else in this specification is
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   568
  normative.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   569
</p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   570
<p id="respecRFC2119">The key words <em class="rfc2119" title="MUST">MUST</em> and <em class="rfc2119" title="MUST NOT">MUST NOT</em> are
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   571
  to be interpreted as described in [<cite><a class="bibref" href="#bib-RFC2119">RFC2119</a></cite>].
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   572
</p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   573
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   574
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   575
      <p>This specification defines conformance criteria for:</p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   576
      <ul>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   577
        <li>LD Patch documents</li>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   578
        <li>LD Patch parsers</li>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   579
        <li>LD Patch processors</li>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   580
        <li>LD Patch servers</li>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   581
      </ul>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   582
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   583
      <p>A conforming <strong>LD Patch document</strong> is a Unicode string that conforms to the grammar defined in the <a href="#concrete-syntax">Concrete Syntax section</a>.</p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   584
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   585
      <p>A conforming <strong>LD Patch parser</strong> is a system capable of parsing LD Patch documents. The resulting abstract concept is called a <strong>Linked Data patch</strong>, or simply <strong>patch</strong> when the context is unambiguous. Parsers should treat Literals as being composed of a lexical form and an optional <a href="http://www.w3.org/TR/rdf11-concepts/#dfn-language-tag">language tag</a> [<cite><a class="bibref" href="#bib-BCP47">BCP47</a></cite>] (as used by <a href="http://www.w3.org/TR/turtle/">Turtle</a> [<cite><a class="bibref" href="#bib-Turtle">Turtle</a></cite>]) or datatype IRI.</p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   586
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   587
      <p>A conforming <strong>LD Patch processor</strong> is a system capable of executing a Linked Data patch against an <a class="externalDFN" href="http://www.w3.org/TR/rdf11-concepts/#section-rdf-graph">RDF Graph</a> and whose semantics follow the ones defined in the <a href="#semantics">LD Patch Semantics section</a>. It would either return a new graph or update the input graph in place.</p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   588
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   589
      <p>A conforming <strong>LD Patch server</strong> is a system capable of processing an LD Patch document through an HTTP PATCH request as defined in <a href="http://www.w3.org/TR/ldp/#ldpr-HTTP_PATCH">LDP PATCH</a> [<cite><a class="bibref" href="#bib-LDP">LDP</a></cite>]. It <em class="rfc2119" title="MUST">MUST</em> handle errors as defined in the <a href="#error-handling">Error Handling section</a>.</p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   590
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   591
      <p>The IRI that identifies the LD Patch format is: <code>http://www.w3.org/ns/formats/LD_Patch</code>.</p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   592
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   593
    </section>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   594
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   595
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   596
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   597
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   598
    <section class="normative" id="semantics" typeof="bibo:Chapter" resource="#semantics" property="bibo:hasPart">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   599
      <!--OddPage--><h2 id="h-semantics" resource="#h-semantics"><span property="xhv:role" resource="xhv:heading"><span class="secno">4. </span>LD Patch Semantics</span></h2>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   600
      <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   601
An LD Patch document is applied to a Linked Data resource identified by an IRI (the <dfn data-dfn-type="dfn" id="dfn-target-iri">target IRI</dfn>) and represented by an RDF graph (the <dfn data-dfn-type="dfn" id="dfn-target-graph">target graph</dfn>). It is made of a prologue followed by a list of statements. The prologue declares a number of <a href="#grammar-production-prefixID">prefixes</a> used to abbreviate IRIs as <a href="#grammar-production-PrefixedName">PrefixedName</a>s. Then, each statement either binds a variable to a matching node from the <a href="#dfn-target-graph" class="internalDFN" data-link-type="dfn">target graph</a>, or specifies a modification on the <a href="#dfn-target-graph" class="internalDFN" data-link-type="dfn">target graph</a>.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   602
      </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   603
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   604
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   605
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   606
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   607
      <section id="nodes-and-triples-semantics" typeof="bibo:Chapter" resource="#nodes-and-triples-semantics" property="bibo:hasPart">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   608
        <h3 id="h-nodes-and-triples-semantics" resource="#h-nodes-and-triples-semantics"><span property="xhv:role" resource="xhv:heading"><span class="secno">4.1 </span><dfn data-dfn-type="dfn" id="dfn-nodes-and-triples-semantics">Nodes and triples Semantics</dfn></span></h3>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   609
        <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   610
LD Patch borrows much of its syntax and semantics from <a href="http://www.w3.org/TR/turtle/">Turtle</a> [<cite><a class="bibref" href="#bib-Turtle">Turtle</a></cite>] for describing nodes and triples. Especially, whenever production rules <a class="internalDFN" href="#grammar-production-triples">triples</a> or <a class="internalDFN" href="#grammar-production-collection">collection</a> are used, Turtle semantics must be applied to parse them as a set of triples that we call an <dfn data-dfn-type="dfn" id="dfn-argument-graph">argument graph</dfn>.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   611
        </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   612
        <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   613
There are however a few points that need to be highlighted in the way LD Patch parses an <a href="#dfn-argument-graph" class="internalDFN" data-link-type="dfn">argument graph</a> compared to Turtle:
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   614
        </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   615
        <ul>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   616
          <li>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   617
            The base IRI used to resolve relative IRIs is the <a href="#dfn-target-iri" class="internalDFN" data-link-type="dfn">target IRI</a>.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   618
          </li>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   619
          <li>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   620
            LD Patch allows <a class="internalDFN" href="#grammar-production-VAR1">var</a>iables in <a class="internalDFN" href="#grammar-production-subject">subject</a> and <a class="internalDFN" href="#grammar-production-object">object</a> positions.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   621
          </li>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   622
          <li>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   623
              The value of a <a class="internalDFN" href="#grammar-production-VAR1">var</a>iables is the last node to which it was bound (in case it appears in several <a href="#dfn-bind" class="internalDFN" data-link-type="dfn">Bind</a> statements).
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   624
          </li>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   625
          <li>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   626
              <dfn id="blank-node-scoping" data-dfn-type="dfn">The scope of <a class="internalDFN" href="#grammar-production-BLANK_NODE_LABEL">blank node identifiers</a> is the whole LD Patch document.</dfn> That means that <a title="argument graph" href="#dfn-argument-graph" class="internalDFN" data-link-type="dfn">argument graphs</a> across statements can share blank nodes.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   627
          </li>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   628
        </ul>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   629
        <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   630
            As IRIs and RDF Literals have global scopes, such nodes in an <a href="#dfn-argument-graph" class="internalDFN" data-link-type="dfn">argument graph</a> represent the same resource as in the <a href="#dfn-target-graph" class="internalDFN" data-link-type="dfn">target graph</a>. Blank nodes, on the other hand, pose a problem, as they have no global identifiers. Indeed, since <a class="internalDFN" href="#blank-node-scoping">the scope of blank node identifiers is limited to the LD Patch document in which they appear</a>, any blank node identifier appearing in an LD Patch document is understood to denote a <em>fresh</em> blank node, distinct from any node initially present in the <a href="#dfn-target-graph" class="internalDFN" data-link-type="dfn">target graph</a>. Therefore blank node identifiers in LD Patch cannot interfere with pre-existing blank nodes in the <a href="#dfn-target-graph" class="internalDFN" data-link-type="dfn">target graph</a>.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   631
        </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   632
        <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   633
However, LD Patch provides mechanisms to address those pre-existing blank nodes: <a href="#dfn-bind" class="internalDFN" data-link-type="dfn">bind</a>ing a variable to a blank node reachable through a <a href="#dfn-path-expression" class="internalDFN" data-link-type="dfn">path expression</a>, <a href="#dfn-cut" class="internalDFN" data-link-type="dfn">cut</a>ting a whole tree made of blank nodes, or using <a href="#dfn-updatelist" class="internalDFN" data-link-type="dfn">UpdateList</a> to deal with those blank nodes that constitute RDF collections. There are cases where those mechanisms will not be able to unambiguously address a given blank node, but those cases are deemed <a href="#pathological-graph">pathological</a>, and are out of the scope of this specification.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   634
        </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   635
      </section>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   636
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   637
      <section id="path-expression" typeof="bibo:Chapter" resource="#path-expression" property="bibo:hasPart">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   638
        <h3 id="h-path-expression" resource="#h-path-expression"><span property="xhv:role" resource="xhv:heading"><span class="secno">4.2 </span><dfn data-dfn-type="dfn" id="dfn-path-expression">Path Expression</dfn></span></h3>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   639
        <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   640
            A <a href="#dfn-path-expression" class="internalDFN" data-link-type="dfn">Path expression</a> can be used to locate RDF nodes within the <a href="#dfn-target-graph" class="internalDFN" data-link-type="dfn">target graph</a>. A path expression consists of a series of one or more <a href="#dfn-step" class="internalDFN" data-link-type="dfn">Step</a>s (introduced by a "<code>/</code>") or <a href="#dfn-constraint" class="internalDFN" data-link-type="dfn">Constraint</a>s, which are applied in order from left to right. The main goal is to allow addressing a blank node by “walking” the arcs of the graph from an previously identified node.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   641
        </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   642
        <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   643
            <code>/</code> behaves like a left-associated operator where the left operand is a node set, the right operand is a <a href="#dfn-step" class="internalDFN" data-link-type="dfn">Step</a>, and the result is a node set. A <a href="#dfn-constraint" class="internalDFN" data-link-type="dfn">Constraint</a> behaves like a predicate function whose implicit parameter is the node set on which it is applied. In the context of a <a href="#dfn-filter" class="internalDFN" data-link-type="dfn">Filter</a>, this implicit node set becomes the left operand for <code>/</code>.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   644
        </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   645
        <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   646
            A <dfn data-dfn-type="dfn" id="dfn-step">Step</dfn> can be of three kinds:
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   647
        </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   648
        <ul>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   649
            <li>A <dfn data-dfn-type="dfn" id="dfn-stepforward">StepForward</dfn> is defined by an IRI, and consists in following the corresponding outgoing arcs in the <a href="#dfn-target-graph" class="internalDFN" data-link-type="dfn">target graph</a>.</li>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   650
            <li>A <dfn data-dfn-type="dfn" id="dfn-stepbackward">StepBackward</dfn> is defined by an IRI preceded by the caret ("<code>^</code>") sign, and consists in following the corresponding incoming arcs <em>in reverse</em> in the <a href="#dfn-target-graph" class="internalDFN" data-link-type="dfn">target graph</a>.</li>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   651
            <li>A <dfn data-dfn-type="dfn" id="dfn-stepat">StepAt</dfn> is defined by an integer <i>n</i>, and consists in following <var>n</var> <code>rdf:rest</code> arcs and one <code>rdf:first</code> arc in order to reach the corresponding member of an RDF collection. It is equivalent to a sequence of <var>n</var>+1 <a href="#dfn-stepforward" class="internalDFN" data-link-type="dfn">StepForward</a>s with the corresponding IRIs. A negative index <var>n</var> denotes the n-th element from the end of the list counting backwards.</li>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   652
        </ul>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   653
        <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   654
            A <dfn data-dfn-type="dfn" id="dfn-constraint">Constraint</dfn> can be of two kinds:
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   655
        </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   656
        <ul>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   657
          <li>A <dfn data-dfn-type="dfn" id="dfn-unicity-constraint">Unicity constraint</dfn>, described by the <em>bang</em> ("<code>!</code>") character, checks that the current node set contains exactly one node.</li>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   658
          <li>A <dfn data-dfn-type="dfn" id="dfn-filter">Filter</dfn>, consisting of a <a href="#dfn-path-expression" class="internalDFN" data-link-type="dfn">Path expression</a> between square brackets ("<code>[</code>", "<code>]</code>"), keeps only the nodes that “satisfy” the enclosed path, i.e. those from which the enclosed path reaches at least one node.</li>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   659
          <li>Additionally, the path in a <a href="#dfn-filter" class="internalDFN" data-link-type="dfn">filter</a> can specify an equality constraint with the use of the equal ("<code>=</code>") sign and a <a class="tref internalDFN" title="Value" href="#dfn-value" data-link-type="dfn">Value</a>. In that case, only the nodes for which that particular value is reached through the enclosed path are kept.</li>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   660
        </ul>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   661
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   662
        <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   663
The following path expression (taken from the <a href="#examples">Examples section</a>) will look for all events matching the predicate <code>schema:performerIn</code>, keeping only the one matching the IRI <code>&lt;https://www.w3.org/2012/ldp/wiki/F2F5&gt;</code>.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   664
        </p><div class="example"><div class="example-title"><span>Example 19</span></div><pre class="example">/ schema:performerIn [ / schema:url = &lt;https://www.w3.org/2012/ldp/wiki/F2F5&gt; ]</pre></div>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   665
        <p></p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   666
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   667
      </section>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   668
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   669
      <section id="patch-operations" typeof="bibo:Chapter" resource="#patch-operations" property="bibo:hasPart">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   670
        <h3 id="h-patch-operations" resource="#h-patch-operations"><span property="xhv:role" resource="xhv:heading"><span class="secno">4.3 </span>Patch Operations</span></h3>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   671
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   672
        <section id="Bind-statement" typeof="bibo:Chapter" resource="#Bind-statement" property="bibo:hasPart">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   673
          <h4 id="h-bind-statement" resource="#h-bind-statement"><span property="xhv:role" resource="xhv:heading"><span class="secno">4.3.1 </span><dfn data-dfn-type="dfn" id="dfn-bind">Bind</dfn></span></h4>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   674
          <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   675
              The <a href="#dfn-bind" class="internalDFN" data-link-type="dfn">Bind</a> operation is used to bind an <a class="externalDFN" href="http://www.w3.org/TR/rdf11-concepts/#dfn-rdf-term">RDF Term</a> to a variable. The process results in the variable being bound to exactly one node. After being bound, the variable can be used in the subsequent statements. Another <a href="#dfn-bind" class="internalDFN" data-link-type="dfn">Bind</a> can override the value of a previously bound variable.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   676
          </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   677
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   678
          <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   679
              The <a href="#dfn-bind" class="internalDFN" data-link-type="dfn">Bind</a> operation is defined by three components: <a href="#dfn-var" class="internalDFN" data-link-type="dfn">Var</a>, <a href="#dfn-value" class="internalDFN" data-link-type="dfn">Value</a> and <a title="path expression" href="#dfn-path-expression" class="internalDFN" data-link-type="dfn">Path</a>, the last component being optional (can be considered equivalent to the empty path).
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   680
          </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   681
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   682
          <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   683
              <dfn data-dfn-type="dfn" id="dfn-var">Var</dfn> contains a unique name for the new variable. Variables are prefixed by the "<code>?</code>" character, which is not part of the variable name.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   684
          </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   685
          <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   686
              <dfn data-dfn-type="dfn" id="dfn-value">Value</dfn> is the <a class="externalDFN" href="http://www.w3.org/TR/rdf11-concepts/#dfn-rdf-term">RDF Term</a> that will be used as starting point when following the path expression.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   687
          </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   688
          <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   689
              <dfn data-dfn-type="dfn" id="dfn-path">Path</dfn> is the expression that is used to identify the <a class="externalDFN" href="http://www.w3.org/TR/rdf11-concepts/#dfn-rdf-term">RDF Term</a> to which the Variable will be bound. It is comprised of <a href="#dfn-step" class="internalDFN" data-link-type="dfn">Step</a>(s) and/or <a href="#dfn-constraint" class="internalDFN" data-link-type="dfn">Constraint</a>(s).
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   690
          </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   691
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   692
          <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   693
              Following the example above, the <a href="#dfn-bind" class="internalDFN" data-link-type="dfn">Bind</a> operation creates a new variable called <code>event</code>, starting from the <a class="externalDFN" href="http://www.w3.org/TR/rdf11-concepts/#dfn-rdf-term">RDF Term</a> <code>&lt;#&gt;</code> and following the path expression <code>/ schema:performerIn [ / schema:url = &lt;https://www.w3.org/2012/ldp/wiki/F2F5&gt; ]</code> in order to identify the <a class="externalDFN" href="http://www.w3.org/TR/rdf11-concepts/#dfn-rdf-term">RDF Term</a> to which this variable will be bound to – i.e. <code>_:b2</code> in the <a href="#dfn-target-graph" class="internalDFN" data-link-type="dfn">target graph</a>.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   694
          </p><div class="example"><div class="example-title"><span>Example 20</span></div><pre class="example">Bind ?event &lt;#&gt; / schema:performerIn [ / schema:url = &lt;https://www.w3.org/2012/ldp/wiki/F2F5&gt; ] .</pre></div>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   695
          <p></p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   696
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   697
        </section>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   698
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   699
        <section id="Add-statement" typeof="bibo:Chapter" resource="#Add-statement" property="bibo:hasPart">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   700
          <h4 id="h-add-statement" resource="#h-add-statement"><span property="xhv:role" resource="xhv:heading"><span class="secno">4.3.2 </span><dfn data-dfn-type="dfn" id="dfn-add">Add</dfn></span></h4>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   701
          <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   702
The <a href="#dfn-add" class="internalDFN" data-link-type="dfn">Add</a> operation is used to append new RDF triples to the <a href="#dfn-target-graph" class="internalDFN" data-link-type="dfn">target graph</a>.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   703
          </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   704
          <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   705
              It has a single argument: an <a href="#dfn-argument-graph" class="internalDFN" data-link-type="dfn">argument graph</a> <var>g</var>. All triples in <var>g</var> must be added to the <var>target graph</var>. If an argument graph contains one or more triples that already exist in the target graph, the <a href="#dfn-add" class="internalDFN" data-link-type="dfn">Add</a> operation does not fail.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   706
          </p><div class="example"><div class="example-title"><span>Example 21</span></div><pre class="example">Add {
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   707
    &lt;#&gt; profile:first_name "Timothy" ;
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   708
        profile:image &lt;https://example.org/timbl.jpg&gt; .
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   709
} .
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   710
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   711
Add { ?event rdf:type schema:Event } .</pre></div>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   712
          <p></p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   713
        </section>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   714
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   715
        <section id="AddNew-statement" typeof="bibo:Chapter" resource="#AddNew-statement" property="bibo:hasPart">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   716
          <h4 id="h-addnew-statement" resource="#h-addnew-statement"><span property="xhv:role" resource="xhv:heading"><span class="secno">4.3.3 </span><dfn data-dfn-type="dfn" id="dfn-addnew">AddNew</dfn></span></h4>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   717
          <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   718
              The <a href="#dfn-addnew" class="internalDFN" data-link-type="dfn">AddNew</a> operation is used to append new RDF triples to the <a href="#dfn-target-graph" class="internalDFN" data-link-type="dfn">target graph</a>. It behaves like <a href="#dfn-add" class="internalDFN" data-link-type="dfn">Add</a> but unlike its counterpart, <a href="#dfn-addnew" class="internalDFN" data-link-type="dfn">AddNew</a> <a href="#addnew-already-existing-triple">fails</a> when trying to add an already existing triple.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   719
          </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   720
        </section>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   721
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   722
        <section id="Delete-statement" typeof="bibo:Chapter" resource="#Delete-statement" property="bibo:hasPart">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   723
          <h4 id="h-delete-statement" resource="#h-delete-statement"><span property="xhv:role" resource="xhv:heading"><span class="secno">4.3.4 </span><dfn data-dfn-type="dfn" id="dfn-delete">Delete</dfn></span></h4>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   724
          <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   725
The <a href="#dfn-delete" class="internalDFN" data-link-type="dfn">Delete</a> operation is used to remove RDF triples from the <a href="#dfn-target-graph" class="internalDFN" data-link-type="dfn">target graph</a>.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   726
          </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   727
          <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   728
              It has a single argument: an <a href="#dfn-argument-graph" class="internalDFN" data-link-type="dfn">argument graph</a> <var>g</var>. All triples in <var>g</var> must be removed from the <var>target graph</var>. It does not fail if one of those triples did not exist in the <a href="#dfn-target-graph" class="internalDFN" data-link-type="dfn">target graph</a>. Blank nodes identifiers are allowed in <a href="#dfn-delete" class="internalDFN" data-link-type="dfn">Delete</a> statements but <a href="#blank-node-scoping">they remain scoped to the LD Patch document</a>, so they can only match a blank node previously added by the same LD Patch document.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   729
          </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   730
          <div class="example"><div class="example-title"><span>Example 22</span></div><pre class="example">Delete { &lt;#&gt; profile:first_name "Tim" } .
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   731
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   732
Delete { ?ted schema:startDate "2009-02-04" } .</pre></div>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   733
          <p></p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   734
        </section>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   735
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   736
        <section id="DeleteExisting-statement" typeof="bibo:Chapter" resource="#DeleteExisting-statement" property="bibo:hasPart">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   737
          <h4 id="h-deleteexisting-statement" resource="#h-deleteexisting-statement"><span property="xhv:role" resource="xhv:heading"><span class="secno">4.3.5 </span><dfn data-dfn-type="dfn" id="dfn-deleteexisting">DeleteExisting</dfn></span></h4>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   738
          <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   739
The <a href="#dfn-deleteexisting" class="internalDFN" data-link-type="dfn">DeleteExisting</a> operation is used to remove RDF triples from the <a href="#dfn-target-graph" class="internalDFN" data-link-type="dfn">target graph</a>. It behaves like <a href="#dfn-delete" class="internalDFN" data-link-type="dfn">Delete</a> but unlike its counterpart, <a href="#dfn-deleteexisting" class="internalDFN" data-link-type="dfn">DeleteExisting</a> <a href="#deleteexisting-non-existing-triple">fails</a> when trying to delete a non-existing triple.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   740
          </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   741
        </section>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   742
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   743
        <section id="Cut-statement" typeof="bibo:Chapter" resource="#Cut-statement" property="bibo:hasPart">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   744
          <h4 id="h-cut-statement" resource="#h-cut-statement"><span property="xhv:role" resource="xhv:heading"><span class="secno">4.3.6 </span><dfn data-dfn-type="dfn" id="dfn-cut">Cut</dfn></span></h4>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   745
          <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   746
            The <a href="#dfn-cut" class="internalDFN" data-link-type="dfn">Cut</a> operation is used to remove one or more triples connected to a specific blank node <var>b</var>. More precisely, it removes all the outgoing arcs for <var>b</var> from the <a href="#dfn-target-graph" class="internalDFN" data-link-type="dfn">target graph</a>, and does the same recursively for all objects of those triples being blank nodes. Finally, it removes all incoming arcs of <var>b</var>.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   747
          </p><div class="example"><div class="example-title"><span>Example 23</span></div><pre class="example">Cut ?workLocation .</pre></div>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   748
          <p></p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   749
        </section>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   750
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   751
        <section id="UpdateList-statement" typeof="bibo:Chapter" resource="#UpdateList-statement" property="bibo:hasPart">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   752
          <h4 id="h-updatelist-statement" resource="#h-updatelist-statement"><span property="xhv:role" resource="xhv:heading"><span class="secno">4.3.7 </span><dfn data-dfn-type="dfn" id="dfn-updatelist">UpdateList</dfn></span></h4>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   753
          <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   754
              The <a href="#dfn-updatelist" class="internalDFN" data-link-type="dfn">UpdateList</a> operation is used to update some members of an <a href="http://www.w3.org/TR/rdf-schema/#ch_collectionvocab">RDF collection</a>. It works in a similar way to <a href="https://docs.python.org/3/reference/expressions.html#slicings">slicing in Python</a> or similar languages: it replaces a slice of a list by another list.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   755
          </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   756
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   757
          <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   758
              The <a href="#dfn-updatelist" class="internalDFN" data-link-type="dfn">UpdateList</a> operation is defined by four components: a <a class="internalDFN" href="#grammar-production-varOrIRI">variable or IRI</a>, a <a class="internalDFN" href="#grammar-production-predicate">predicate</a>, a <a href="#dfn-slice-expression" class="internalDFN" data-link-type="dfn">Slice expression</a>, and an <a href="#dfn-argument-graph" class="internalDFN" data-link-type="dfn">argument graph</a> containing an RDF collection.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   759
          </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   760
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   761
          <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   762
              The <dfn data-dfn-type="dfn" id="dfn-slice-expression">Slice expression</dfn> is composed of two optional 0-based indexes <var>i<sub>min</sub></var> and <var>i<sub>max</sub></var> separated by "<code>..</code>". A negative index denotes elements from the end of the list counting backwards, e.g. the last element of any non-empty list always has the index <code>-1</code>. An omitted value is interpreted as the length of the collection. The <a href="#dfn-slice-expression" class="internalDFN" data-link-type="dfn">Slice expression</a> will denote the slice of the list being preceded by <var>i<sub>min</sub></var> elements, and spanning over (<var>i<sub>max</sub></var> - <var>i<sub>min</sub></var>) elements.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   763
         </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   764
         <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   765
             For example, here are some <a href="#dfn-slice-expression" class="internalDFN" data-link-type="dfn">Slice expression</a>s for the list <code>( "lorem" "ipsum" "dolor" "sit" "amet" )</code>:
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   766
          </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   767
          <ul>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   768
              <li><code>2..4</code> denotes the slice <code>( "dolor" "sit" )</code>, i.e. the elements between the indexes <code>2</code> and <code>4</code></li>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   769
              <li><code>0..</code> denotes the slice <code>( "lorem" "ipsum" "dolor" "sit" "amet" )</code>, i.e. the whole list</li>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   770
              <li><code>3..</code> denotes the slice <code>( "sit" "amet" )</code>, i.e. all the elements after the index <code>3</code></li>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   771
              <li><code>-2..</code> denotes the slice <code>( "sit" "amet" )</code>, i.e. the last 2 elements</li>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   772
              <li><code>2..2</code> denotes the empty slice located between <code>"ipsum"</code> and <code>"dolor"</code></li>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   773
              <li><code>..</code> denotes the empty slice located at the end of the list</li>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   774
          </ul>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   775
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   776
          <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   777
              <a href="#updatelist-algo">Appendix A</a> contains a detailed algorithm for implementing the <a href="#dfn-updatelist" class="internalDFN" data-link-type="dfn">UpdateList</a> logic using reified <code>rdf:List</code>.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   778
          </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   779
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   780
      </section>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   781
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   782
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   783
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   784
      <section id="error-handling" typeof="bibo:Chapter" resource="#error-handling" property="bibo:hasPart">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   785
        <h4 id="h-error-handling" resource="#h-error-handling"><span property="xhv:role" resource="xhv:heading"><span class="secno">4.3.8 </span><dfn data-dfn-type="dfn" id="dfn-error-handling">Error Handling</dfn></span></h4>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   786
        <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   787
LD Patch abides to the semantics of the <a href="http://tools.ietf.org/html/rfc5789">HTTP PATCH method</a> [<cite><a class="bibref" href="#bib-RFC5789">RFC5789</a></cite>], in that the server <q cite="http://tools.ietf.org/html/rfc5789"><em class="rfc2119" title="MUST">MUST</em> apply the entire set of changes atomically and never provide (e.g., in response to a GET during this operation) a partially modified representation. If the entire patch document cannot be successfully applied (e.g., one of the instructions has failed), then the server <em class="rfc2119" title="MUST NOT">MUST NOT</em> apply any of the changes</q>. In the case LD Patch operations fail to be applied, <a href="http://tools.ietf.org/html/rfc5789#section-2.2">Error Handling, Section 2</a> of [<cite><a class="bibref" href="#bib-RFC5789">RFC5789</a></cite>] specifies the error codes to be used.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   788
        </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   789
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   790
	<p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   791
            Here are some additional error conditions more specific to LD Patch:
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   792
        </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   793
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   794
        <ul>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   795
            <li id="bind-unique-match">If a <a href="#dfn-bind" class="internalDFN" data-link-type="dfn">Bind</a> statement fails to match exactly one node, then a HTTP 422 (Unprocessable Entity) error status code <em class="rfc2119" title="MUST">MUST</em> be returned.</li>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   796
            <li id="unicity-constraint-violated">If a <a href="#dfn-unicity-constraint" class="internalDFN" data-link-type="dfn">Unicity constraint</a> is violated, then a HTTP 422 (Unprocessable Entity) error status code <em class="rfc2119" title="MUST">MUST</em> be returned.</li>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   797
            <li id="cut-nothing">If a <a href="#dfn-cut" class="internalDFN" data-link-type="dfn">Cut</a> operation fails to remove any triple, then a HTTP 422 (Unprocessable Entity) error status code <em class="rfc2119" title="MUST">MUST</em> be returned.</li>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   798
            <li id="cut-non-bnode">If a <a href="#dfn-cut" class="internalDFN" data-link-type="dfn">Cut</a> operation is called on a variable not bound to a blank node, then a HTTP 422 (Unprocessable Entity) error status code <em class="rfc2119" title="MUST">MUST</em> be returned.</li>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   799
            <li id="deleteexisting-non-existing-triple">If a <a href="#dfn-deleteexisting" class="internalDFN" data-link-type="dfn">DeleteExisting</a> attempts to remove a non-existing triple, then a HTTP 422 (Unprocessable Entity) error status code <em class="rfc2119" title="MUST">MUST</em> be returned.</li>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   800
            <li id="addnew-already-existing-triple">If a <a href="#dfn-addnew" class="internalDFN" data-link-type="dfn">AddNew</a> attempts to add an already existing triple, then a HTTP 422 (Unprocessable Entity) error status code <em class="rfc2119" title="MUST">MUST</em> be returned.</li>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   801
            <li id="updatelist-non-list-argument">If the subject and predicate provided to an <a href="#dfn-updatelist" class="internalDFN" data-link-type="dfn">UpdateList</a> do not have a unique object, or if this object is not a well-formed collection, then a HTTP 422 (Unprocessable Entity) error status code <em class="rfc2119" title="MUST">MUST</em> be returned.</li>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   802
            <li id="wrong-order-for-indexes">If the indexes in a <a href="#dfn-slice-expression" class="internalDFN" data-link-type="dfn">slice expression</a> are in the wrong order (e.g. <code>2868..42</code>), then the parsing fails and a 400 (Bad Request) error status code <em class="rfc2119" title="MUST">MUST</em> be returned.</li>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   803
            <li id="wrong-index">If an index in a <a href="#dfn-slice-expression" class="internalDFN" data-link-type="dfn">slice expression</a> is greater than the length of the <code>rdf:List</code>, then a 422 (Unprocessable Entity) error status code <em class="rfc2119" title="MUST">MUST</em> be returned.</li>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   804
            <li id="unknown-prefix">If a prefix name (<a class="internalDFN" href="#grammar-production-PNAME_NS">PNAME_NS</a>) is used without being previously declared, then the parsing fails and a 400 (Bad Request) error status code <em class="rfc2119" title="MUST">MUST</em> be returned.</li>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   805
            <li id="unknown-variable">If a <a href="#dfn-var" class="internalDFN" data-link-type="dfn">var</a>iable is used without being previously bound, then the parsing fails and a 400 (Bad Request) error status code <em class="rfc2119" title="MUST">MUST</em> be returned.</li>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   806
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   807
        </ul>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   808
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   809
        <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   810
            Note: 422 (Unprocessable Entity) is defined in <a href="http://tools.ietf.org/html/rfc4918#section-11.2">422 Unprocessable Entity, Section 11.2</a> of [<cite><a class="bibref" href="#bib-RFC4918">RFC4918</a></cite>].
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   811
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   812
        </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   813
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   814
      </section>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   815
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   816
      <section id="pathological-graph" typeof="bibo:Chapter" resource="#pathological-graph" property="bibo:hasPart">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   817
        <h4 id="h-pathological-graph" resource="#h-pathological-graph"><span property="xhv:role" resource="xhv:heading"><span class="secno">4.3.9 </span><dfn data-dfn-type="dfn" id="dfn-pathological-graph">Pathological Graph</dfn></span></h4>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   818
          <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   819
            There exists a particular case which LD Patch is not able to address. Given an RDF graph <var>G</var>, a blank node <var>b</var> is said to be unambiguous in <var>G</var> if there exists a couple <var>(n, p)</var> where
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   820
          </p><ul>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   821
            <li><var>n</var> is an IRI or a literal</li>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   822
            <li><var>p</var> is a <a href="#dfn-path-expression" class="internalDFN" data-link-type="dfn">Path Expression</a></li>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   823
          </ul>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   824
          such that applying <var>p</var> to {<var>n</var>} results in the singleton set {<var>b</var>}.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   825
          <p></p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   826
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   827
          <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   828
  It is easy to see that only the unambiguous blank nodes of a graph can be handled in LD Patch.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   829
          </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   830
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   831
          <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   832
  Consider for example the following graph:
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   833
          </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   834
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   835
        <div class="example"><div class="example-title"><span>Example 24</span></div><pre class="example">&lt;#&gt; foaf:name "Alice" ; foaf:knows _:b1, _:b2 .
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   836
_:b1 a foaf:Person .
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   837
_:b2 a foaf:Person ; schema:workLocation _:b3 .
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   838
_:b3 schema:name "W3C/MIT" .</pre></div>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   839
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   840
        <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   841
          The blank nodes <code>_:b2</code> and <code>_:b3</code> are unambiguous as they can be reached unambiguoulsy from the literal <code>"<abbr title="World Wide Web Consortium">W3C</abbr>/<abbr title="Massachusetts Institute of Technology">MIT</abbr>"</code>. The blank node <code>_:b1</code>, on the other hand, is ambigious as all <a href="#dfn-path-expression" class="internalDFN" data-link-type="dfn">path expression</a>s that can match it would also match <code>_:b2</code>.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   842
        </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   843
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   844
        <!-- p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   845
          This kind of node is not particularly interesting in RDF, as its presence does not change the semantics of the graph. Indeed, if we remove <code>_:b2</code> and all its triples from the graph above, the resulting graph would be semantically equivalent to the original graph.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   846
        </p-->
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   847
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   848
        <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   849
          Another example is a graph containing only blank nodes. All its nodes are therefore ambiguous as they can not be reached from an IRI or a literal. Such a graph is not interesting in the context of Linked Data as it contains no IRI to link to or from it.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   850
        </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   851
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   852
        <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   853
          Therefore, ambiguous blank nodes are considered a pathological case in the context of Linked Data, and so the fact that they cannot be coped with in LD Patch is deemed acceptable. Furthermore, their presence in a graph does not prevent the other nodes of that graph to be handled by LD Patch. Most notably, all <a class="externalDFN" href="http://www.w3.org/TR/rdf11-mt/#dfn-lean">non-lean graphs</a> [<cite><a class="bibref" href="#bib-rdf11-mt">rdf11-mt</a></cite>] are also pathological.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   854
        </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   855
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   856
        </section>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   857
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   858
      </section>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   859
    </section>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   860
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   861
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   862
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   863
    <section id="turtle-sparql-comparison" class="informative" typeof="bibo:Chapter" resource="#turtle-sparql-comparison" property="bibo:hasPart">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   864
        <!--OddPage--><h2 id="h-turtle-sparql-comparison" resource="#h-turtle-sparql-comparison"><span property="xhv:role" resource="xhv:heading"><span class="secno">5. </span>LD Patch compared to Turtle and SPARQL</span></h2><p><em>This section is non-normative.</em></p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   865
        <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   866
            The LD Patch syntax uses a Turtle [<cite><a class="bibref" href="#bib-Turtle">Turtle</a></cite>] style syntax for its <a class="internalDFN" href="#grammar-production-triples">triples</a> production. This production differs from the Turtle language in that the <a class="internalDFN" href="#grammar-production-subject">subject</a> and <a class="internalDFN" href="#grammar-production-object">object</a> production rules allow the use of variables.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   867
        </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   868
        <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   869
            LD Patch variables are restricted to the <a class="internalDFN" href="#grammar-production-VAR1">VAR1</a> production rule from SPARQL 1.1 [<cite><a class="bibref" href="#bib-sparql11-query">sparql11-query</a></cite>], only allowing a leading '<code>?</code>'.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   870
        </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   871
        <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   872
            Finally, the prefix directive is restricted to the <a class="internalDFN" href="#grammar-production-prefixID">prefixID</a> production rule in Turtle [<cite><a class="bibref" href="#bib-Turtle">Turtle</a></cite>], only allowing <code>@prefix</code>.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   873
        </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   874
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   875
    </section>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   876
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   877
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   878
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   879
    <section id="concrete-syntax" typeof="bibo:Chapter" resource="#concrete-syntax" property="bibo:hasPart">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   880
      <!--OddPage--><h2 id="h-concrete-syntax" resource="#h-concrete-syntax"><span property="xhv:role" resource="xhv:heading"><span class="secno">6. </span>Concrete Syntax</span></h2>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   881
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   882
      <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   883
          Production labels consisting of a number and a final 's', e.g. [135s], reference the production with that number in the <a href="http://www.w3.org/TR/sparql11-query/#sparqlGrammar">SPARQL 1.1 Query Language grammar</a> [<cite><a class="bibref" href="#bib-sparql11-query">sparql11-query</a></cite>]. Production labels consisting of a number and a final 't', e.g. [6t], reference the production with that number in the <a href="http://www.w3.org/TR/turtle/#sec-grammar-grammar">Turtle grammar</a> [<cite><a class="bibref" href="#bib-Turtle">Turtle</a></cite>]. A production label containing an extra trailing '*' denotes a modified rule, e.g. [10t*] and [12t*].
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   884
      </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   885
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   886
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   887
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   888
      <!-- do not edit manually, this is automatically generated -->
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   889
<table class="grammar">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   890
  <tbody class="grammar-productions">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   891
<tr id="grammar-production-ldpatch">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   892
    <td>[1]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   893
    <td><a href="#grammar-production-ldpatch">ldpatch</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   894
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   895
    <td><a href="#grammar-production-prologue">prologue</a> <a href="#grammar-production-statement">statement</a>*</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   896
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   897
<tr id="grammar-production-prologue">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   898
    <td>[2]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   899
    <td><a href="#grammar-production-prologue">prologue</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   900
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   901
    <td><a href="#grammar-production-prefixID">prefixID</a>*</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   902
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   903
<tr id="grammar-production-statement">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   904
    <td>[3]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   905
    <td><a href="#grammar-production-statement">statement</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   906
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   907
    <td><a href="#grammar-production-bind">bind</a> | <a href="#grammar-production-add">add</a> | <a href="#grammar-production-addNew">addNew</a> | <a href="#grammar-production-delete">delete</a> | <a href="#grammar-production-deleteExisting">deleteExisting</a> | <a href="#grammar-production-cut">cut</a> | <a href="#grammar-production-updateList">updateList</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   908
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   909
<tr id="grammar-production-bind">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   910
    <td>[4]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   911
    <td><a href="#grammar-production-bind">bind</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   912
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   913
    <td>("<code class="grammar-literal">Bind</code>" | "<code class="grammar-literal">B</code>") <a href="#grammar-production-VAR1">VAR1</a> <a href="#grammar-production-value">value</a> <a href="#grammar-production-path">path</a>? "<code class="grammar-literal">.</code>"</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   914
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   915
<tr id="grammar-production-add">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   916
    <td>[5]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   917
    <td><a href="#grammar-production-add">add</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   918
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   919
    <td>("<code class="grammar-literal">Add</code>" | "<code class="grammar-literal">A</code>") "<code class="grammar-literal">{</code>" <a href="#grammar-production-graph">graph</a> "<code class="grammar-literal">}</code>" "<code class="grammar-literal">.</code>"</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   920
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   921
<tr id="grammar-production-addNew">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   922
    <td>[6]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   923
    <td><a href="#grammar-production-addNew">addNew</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   924
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   925
    <td>("<code class="grammar-literal">AddNew</code>" | "<code class="grammar-literal">AN</code>") "<code class="grammar-literal">{</code>" <a href="#grammar-production-graph">graph</a> "<code class="grammar-literal">}</code>" "<code class="grammar-literal">.</code>"</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   926
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   927
<tr id="grammar-production-delete">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   928
    <td>[7]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   929
    <td><a href="#grammar-production-delete">delete</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   930
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   931
    <td>("<code class="grammar-literal">Delete</code>" | "<code class="grammar-literal">D</code>") "<code class="grammar-literal">{</code>" <a href="#grammar-production-graph">graph</a> "<code class="grammar-literal">}</code>" "<code class="grammar-literal">.</code>"</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   932
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   933
<tr id="grammar-production-deleteExisting">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   934
    <td>[8]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   935
    <td><a href="#grammar-production-deleteExisting">deleteExisting</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   936
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   937
    <td>("<code class="grammar-literal">DeleteExisting</code>" | "<code class="grammar-literal">DE</code>") "<code class="grammar-literal">{</code>" <a href="#grammar-production-graph">graph</a> "<code class="grammar-literal">}</code>" "<code class="grammar-literal">.</code>"</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   938
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   939
<tr id="grammar-production-cut">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   940
    <td>[9]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   941
    <td><a href="#grammar-production-cut">cut</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   942
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   943
    <td>("<code class="grammar-literal">Cut</code>" | "<code class="grammar-literal">C</code>") <a href="#grammar-production-VAR1">VAR1</a> "<code class="grammar-literal">.</code>"</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   944
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   945
<tr id="grammar-production-updateList">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   946
    <td>[10]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   947
    <td><a href="#grammar-production-updateList">updateList</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   948
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   949
    <td>("<code class="grammar-literal">UpdateList</code>" | "<code class="grammar-literal">UL</code>") <a href="#grammar-production-varOrIRI">varOrIRI</a> <a href="#grammar-production-predicate">predicate</a> <a href="#grammar-production-slice">slice</a> <a href="#grammar-production-collection">collection</a> "<code class="grammar-literal">.</code>"</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   950
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   951
<tr id="grammar-production-varOrIRI">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   952
    <td>[11]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   953
    <td><a href="#grammar-production-varOrIRI">varOrIRI</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   954
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   955
    <td><a href="#grammar-production-iri">iri</a> | <a href="#grammar-production-VAR1">VAR1</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   956
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   957
<tr id="grammar-production-value">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   958
    <td>[12]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   959
    <td><a href="#grammar-production-value">value</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   960
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   961
    <td><a href="#grammar-production-iri">iri</a> | <a href="#grammar-production-literal">literal</a> | <a href="#grammar-production-VAR1">VAR1</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   962
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   963
<tr id="grammar-production-path">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   964
    <td>[13]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   965
    <td><a href="#grammar-production-path">path</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   966
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   967
    <td>( '<code class="grammar-literal">/</code>' <a href="#grammar-production-step">step</a> | <a href="#grammar-production-constraint">constraint</a> )*</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   968
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   969
<tr id="grammar-production-step">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   970
    <td>[14]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   971
    <td><a href="#grammar-production-step">step</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   972
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   973
    <td>'<code class="grammar-literal">^</code>' <a href="#grammar-production-iri">iri</a> | <a href="#grammar-production-iri">iri</a> | <a href="#grammar-production-INDEX">INDEX</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   974
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   975
<tr id="grammar-production-constraint">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   976
    <td>[15]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   977
    <td><a href="#grammar-production-constraint">constraint</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   978
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   979
    <td>'<code class="grammar-literal">[</code>' <a href="#grammar-production-path">path</a> ( '<code class="grammar-literal">=</code>' <a href="#grammar-production-value">value</a> )? '<code class="grammar-literal">]</code>' | '<code class="grammar-literal">!</code>'</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   980
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   981
<tr id="grammar-production-slice">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   982
    <td>[16]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   983
    <td><a href="#grammar-production-slice">slice</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   984
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   985
    <td><a href="#grammar-production-INDEX">INDEX</a>? '<code class="grammar-literal">..</code>' <a href="#grammar-production-INDEX">INDEX</a>?</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   986
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   987
<tr id="grammar-production-INDEX">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   988
    <td>[17]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   989
    <td><a href="#grammar-production-INDEX">INDEX</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   990
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   991
    <td>'<code class="grammar-literal">-</code>'? [0-9]+</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   992
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   993
<tr id="grammar-production-VAR1">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   994
    <td>[143s]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   995
    <td><a href="#grammar-production-VAR1">VAR1</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   996
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   997
    <td>'<code class="grammar-literal">?</code>' <a href="#grammar-production-VARNAME">VARNAME</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   998
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
   999
<tr id="grammar-production-VARNAME">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1000
    <td>[166s]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1001
    <td><a href="#grammar-production-VARNAME">VARNAME</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1002
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1003
    <td>( <a href="#grammar-production-PN_CHARS_U">PN_CHARS_U</a> | [0-9] ) ( <a href="#grammar-production-PN_CHARS_U">PN_CHARS_U</a> | [0-9] | #x00B7 | [#x0300-#x036F] | [#x203F-#x2040] )*</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1004
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1005
<tr id="grammar-production-prefixID">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1006
    <td>[4t]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1007
    <td><a href="#grammar-production-prefixID">prefixID</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1008
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1009
    <td>"<code class="grammar-literal">@prefix</code>" <a href="#grammar-production-PNAME_NS">PNAME_NS</a> <a href="#grammar-production-IRIREF">IRIREF</a> "<code class="grammar-literal">.</code>"</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1010
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1011
<tr id="grammar-production-graph">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1012
    <td>[18]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1013
    <td><a href="#grammar-production-graph">graph</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1014
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1015
    <td><a href="#grammar-production-triples">triples</a> ( '<code class="grammar-literal">.</code>' <a href="#grammar-production-triples">triples</a> )* '<code class="grammar-literal">.</code>'?</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1016
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1017
<tr id="grammar-production-triples">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1018
    <td>[6t]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1019
    <td><a href="#grammar-production-triples">triples</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1020
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1021
    <td><a href="#grammar-production-subject">subject</a> <a href="#grammar-production-predicateObjectList">predicateObjectList</a> | <a href="#grammar-production-blankNodePropertyList">blankNodePropertyList</a> <a href="#grammar-production-predicateObjectList">predicateObjectList</a>?</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1022
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1023
<tr id="grammar-production-predicateObjectList">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1024
    <td>[7t]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1025
    <td><a href="#grammar-production-predicateObjectList">predicateObjectList</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1026
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1027
    <td><a href="#grammar-production-verb">verb</a> <a href="#grammar-production-objectList">objectList</a> ('<code class="grammar-literal">;</code>' (<a href="#grammar-production-verb">verb</a> <a href="#grammar-production-objectList">objectList</a>)?)*</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1028
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1029
<tr id="grammar-production-objectList">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1030
    <td>[8t]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1031
    <td><a href="#grammar-production-objectList">objectList</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1032
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1033
    <td><a href="#grammar-production-object">object</a> ('<code class="grammar-literal">,</code>' <a href="#grammar-production-object">object</a>)*</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1034
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1035
<tr id="grammar-production-verb">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1036
    <td>[9t]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1037
    <td><a href="#grammar-production-verb">verb</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1038
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1039
    <td><a href="#grammar-production-predicate">predicate</a> | '<code class="grammar-literal">a</code>'</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1040
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1041
<tr id="grammar-production-subject">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1042
    <td>[10t*]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1043
    <td><a href="#grammar-production-subject">subject</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1044
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1045
    <td><a href="#grammar-production-iri">iri</a> | <a href="#grammar-production-BlankNode">BlankNode</a> | <a href="#grammar-production-collection">collection</a> | <a href="#grammar-production-VAR1">VAR1</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1046
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1047
<tr id="grammar-production-predicate">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1048
    <td>[11t]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1049
    <td><a href="#grammar-production-predicate">predicate</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1050
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1051
    <td><a href="#grammar-production-iri">iri</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1052
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1053
<tr id="grammar-production-object">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1054
    <td>[12t*]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1055
    <td><a href="#grammar-production-object">object</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1056
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1057
    <td><a href="#grammar-production-iri">iri</a> | <a href="#grammar-production-BlankNode">BlankNode</a> | <a href="#grammar-production-collection">collection</a> | <a href="#grammar-production-blankNodePropertyList">blankNodePropertyList</a> | <a href="#grammar-production-literal">literal</a> | <a href="#grammar-production-VAR1">VAR1</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1058
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1059
<tr id="grammar-production-literal">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1060
    <td>[13t]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1061
    <td><a href="#grammar-production-literal">literal</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1062
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1063
    <td><a href="#grammar-production-RDFLiteral">RDFLiteral</a> | <a href="#grammar-production-NumericLiteral">NumericLiteral</a> | <a href="#grammar-production-BooleanLiteral">BooleanLiteral</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1064
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1065
<tr id="grammar-production-blankNodePropertyList">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1066
    <td>[14t]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1067
    <td><a href="#grammar-production-blankNodePropertyList">blankNodePropertyList</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1068
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1069
    <td>'<code class="grammar-literal">[</code>' <a href="#grammar-production-predicateObjectList">predicateObjectList</a> '<code class="grammar-literal">]</code>'</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1070
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1071
<tr id="grammar-production-collection">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1072
    <td>[15t]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1073
    <td><a href="#grammar-production-collection">collection</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1074
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1075
    <td>'<code class="grammar-literal">(</code>' <a href="#grammar-production-object">object</a>* '<code class="grammar-literal">)</code>'</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1076
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1077
<tr id="grammar-production-NumericLiteral">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1078
    <td>[16t]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1079
    <td><a href="#grammar-production-NumericLiteral">NumericLiteral</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1080
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1081
    <td><a href="#grammar-production-INTEGER">INTEGER</a> | <a href="#grammar-production-DECIMAL">DECIMAL</a> | <a href="#grammar-production-DOUBLE">DOUBLE</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1082
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1083
<tr id="grammar-production-RDFLiteral">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1084
    <td>[128s]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1085
    <td><a href="#grammar-production-RDFLiteral">RDFLiteral</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1086
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1087
    <td><a href="#grammar-production-String">String</a> (<a href="#grammar-production-LANGTAG">LANGTAG</a> | '<code class="grammar-literal">^^</code>' <a href="#grammar-production-iri">iri</a>)?</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1088
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1089
<tr id="grammar-production-BooleanLiteral">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1090
    <td>[133s]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1091
    <td><a href="#grammar-production-BooleanLiteral">BooleanLiteral</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1092
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1093
    <td>'<code class="grammar-literal">true</code>' | '<code class="grammar-literal">false</code>'</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1094
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1095
<tr id="grammar-production-String">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1096
    <td>[17]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1097
    <td><a href="#grammar-production-String">String</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1098
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1099
    <td><a href="#grammar-production-STRING_LITERAL_QUOTE">STRING_LITERAL_QUOTE</a> | <a href="#grammar-production-STRING_LITERAL_SINGLE_QUOTE">STRING_LITERAL_SINGLE_QUOTE</a> | <a href="#grammar-production-STRING_LITERAL_LONG_SINGLE_QUOTE">STRING_LITERAL_LONG_SINGLE_QUOTE</a> | <a href="#grammar-production-STRING_LITERAL_LONG_QUOTE">STRING_LITERAL_LONG_QUOTE</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1100
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1101
<tr id="grammar-production-iri">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1102
    <td>[135s]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1103
    <td><a href="#grammar-production-iri">iri</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1104
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1105
    <td><a href="#grammar-production-IRIREF">IRIREF</a> | <a href="#grammar-production-PrefixedName">PrefixedName</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1106
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1107
<tr id="grammar-production-PrefixedName">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1108
    <td>[136s]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1109
    <td><a href="#grammar-production-PrefixedName">PrefixedName</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1110
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1111
    <td><a href="#grammar-production-PNAME_LN">PNAME_LN</a> | <a href="#grammar-production-PNAME_NS">PNAME_NS</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1112
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1113
<tr id="grammar-production-BlankNode">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1114
    <td>[137s]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1115
    <td><a href="#grammar-production-BlankNode">BlankNode</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1116
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1117
    <td><a href="#grammar-production-BLANK_NODE_LABEL">BLANK_NODE_LABEL</a> | <a href="#grammar-production-ANON">ANON</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1118
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1119
<tr id="grammar-production-IRIREF">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1120
    <td>[18]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1121
    <td><a href="#grammar-production-IRIREF">IRIREF</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1122
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1123
    <td>'<code class="grammar-literal">&lt;</code>' ([^#x00-#x20&lt;&gt;"{}|^`\] | <a href="#grammar-production-UCHAR">UCHAR</a>)* '<code class="grammar-literal">&gt;</code>' /* #x00=NULL #01-#x1F=control codes #x20=space */</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1124
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1125
<tr id="grammar-production-PNAME_NS">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1126
    <td>[139s]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1127
    <td><a href="#grammar-production-PNAME_NS">PNAME_NS</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1128
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1129
    <td><a href="#grammar-production-PN_PREFIX">PN_PREFIX</a>? '<code class="grammar-literal">:</code>'</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1130
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1131
<tr id="grammar-production-PNAME_LN">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1132
    <td>[140s]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1133
    <td><a href="#grammar-production-PNAME_LN">PNAME_LN</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1134
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1135
    <td><a href="#grammar-production-PNAME_NS">PNAME_NS</a> <a href="#grammar-production-PN_LOCAL">PN_LOCAL</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1136
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1137
<tr id="grammar-production-BLANK_NODE_LABEL">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1138
    <td>[141s]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1139
    <td><a href="#grammar-production-BLANK_NODE_LABEL">BLANK_NODE_LABEL</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1140
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1141
    <td>'<code class="grammar-literal">_:</code>' (<a href="#grammar-production-PN_CHARS_U">PN_CHARS_U</a> | [0-9]) ((<a href="#grammar-production-PN_CHARS">PN_CHARS</a> | '<code class="grammar-literal">.</code>')* <a href="#grammar-production-PN_CHARS">PN_CHARS</a>)?</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1142
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1143
<tr id="grammar-production-LANGTAG">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1144
    <td>[144s]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1145
    <td><a href="#grammar-production-LANGTAG">LANGTAG</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1146
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1147
    <td>'<code class="grammar-literal">@</code>' [a-zA-Z]+ ('<code class="grammar-literal">-</code>' [a-zA-Z0-9]+)*</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1148
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1149
<tr id="grammar-production-INTEGER">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1150
    <td>[19]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1151
    <td><a href="#grammar-production-INTEGER">INTEGER</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1152
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1153
    <td>[+-]? [0-9]+</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1154
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1155
<tr id="grammar-production-DECIMAL">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1156
    <td>[20]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1157
    <td><a href="#grammar-production-DECIMAL">DECIMAL</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1158
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1159
    <td>[+-]? [0-9]* '<code class="grammar-literal">.</code>' [0-9]+</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1160
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1161
<tr id="grammar-production-DOUBLE">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1162
    <td>[21]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1163
    <td><a href="#grammar-production-DOUBLE">DOUBLE</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1164
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1165
    <td>[+-]? ([0-9]+ '<code class="grammar-literal">.</code>' [0-9]* <a href="#grammar-production-EXPONENT">EXPONENT</a> | '<code class="grammar-literal">.</code>' [0-9]+ <a href="#grammar-production-EXPONENT">EXPONENT</a> | [0-9]+ <a href="#grammar-production-EXPONENT">EXPONENT</a>)</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1166
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1167
<tr id="grammar-production-EXPONENT">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1168
    <td>[154s]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1169
    <td><a href="#grammar-production-EXPONENT">EXPONENT</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1170
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1171
    <td>[eE] [+-]? [0-9]+</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1172
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1173
<tr id="grammar-production-STRING_LITERAL_QUOTE">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1174
    <td>[22]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1175
    <td><a href="#grammar-production-STRING_LITERAL_QUOTE">STRING_LITERAL_QUOTE</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1176
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1177
    <td>'<code class="grammar-literal">"</code>' ([^#x22#x5C#xA#xD] | <a href="#grammar-production-ECHAR">ECHAR</a> | <a href="#grammar-production-UCHAR">UCHAR</a>)* '<code class="grammar-literal">"</code>'      /* #x22=" #x5C=\ #xA=new line #xD=carriage return */</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1178
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1179
<tr id="grammar-production-STRING_LITERAL_SINGLE_QUOTE">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1180
    <td>[23]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1181
    <td><a href="#grammar-production-STRING_LITERAL_SINGLE_QUOTE">STRING_LITERAL_SINGLE_QUOTE</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1182
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1183
    <td>"<code class="grammar-literal">'</code>" ([^#x27#x5C#xA#xD] | <a href="#grammar-production-ECHAR">ECHAR</a> | <a href="#grammar-production-UCHAR">UCHAR</a>)* "<code class="grammar-literal">'</code>"      /* #x27=' #x5C=\ #xA=new line #xD=carriage return */</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1184
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1185
<tr id="grammar-production-STRING_LITERAL_LONG_SINGLE_QUOTE">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1186
    <td>[24]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1187
    <td><a href="#grammar-production-STRING_LITERAL_LONG_SINGLE_QUOTE">STRING_LITERAL_LONG_SINGLE_QUOTE</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1188
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1189
    <td>"<code class="grammar-literal">'''</code>" (("<code class="grammar-literal">'</code>" | "<code class="grammar-literal">''</code>")? ([^'\] | <a href="#grammar-production-ECHAR">ECHAR</a> | <a href="#grammar-production-UCHAR">UCHAR</a>))* "<code class="grammar-literal">'''</code>"</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1190
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1191
<tr id="grammar-production-STRING_LITERAL_LONG_QUOTE">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1192
    <td>[25]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1193
    <td><a href="#grammar-production-STRING_LITERAL_LONG_QUOTE">STRING_LITERAL_LONG_QUOTE</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1194
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1195
    <td>'<code class="grammar-literal">"""</code>' (('<code class="grammar-literal">"</code>' | '<code class="grammar-literal">""</code>')? ([^"\] | <a href="#grammar-production-ECHAR">ECHAR</a> | <a href="#grammar-production-UCHAR">UCHAR</a>))* '<code class="grammar-literal">"""</code>'</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1196
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1197
<tr id="grammar-production-UCHAR">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1198
    <td>[26]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1199
    <td><a href="#grammar-production-UCHAR">UCHAR</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1200
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1201
    <td>'<code class="grammar-literal">\\u</code>' <a href="#grammar-production-HEX">HEX</a> <a href="#grammar-production-HEX">HEX</a> <a href="#grammar-production-HEX">HEX</a> <a href="#grammar-production-HEX">HEX</a> | '<code class="grammar-literal">\\U</code>' <a href="#grammar-production-HEX">HEX</a> <a href="#grammar-production-HEX">HEX</a> <a href="#grammar-production-HEX">HEX</a> <a href="#grammar-production-HEX">HEX</a> <a href="#grammar-production-HEX">HEX</a> <a href="#grammar-production-HEX">HEX</a> <a href="#grammar-production-HEX">HEX</a> <a href="#grammar-production-HEX">HEX</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1202
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1203
<tr id="grammar-production-ECHAR">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1204
    <td>[159s]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1205
    <td><a href="#grammar-production-ECHAR">ECHAR</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1206
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1207
    <td>'<code class="grammar-literal">\</code>' [tbnrf"'\]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1208
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1209
<tr id="grammar-production-WS">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1210
    <td>[161s]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1211
    <td><a href="#grammar-production-WS">WS</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1212
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1213
    <td>#x20 | #x9 | #xD | #xA</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1214
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1215
<tr id="grammar-production-ANON">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1216
    <td>[162s]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1217
    <td><a href="#grammar-production-ANON">ANON</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1218
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1219
    <td>'<code class="grammar-literal">[</code>' <a href="#grammar-production-WS">WS</a>* '<code class="grammar-literal">]</code>'</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1220
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1221
<tr id="grammar-production-PN_CHARS_BASE">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1222
    <td>[163s]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1223
    <td><a href="#grammar-production-PN_CHARS_BASE">PN_CHARS_BASE</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1224
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1225
    <td>[A-Z] | [a-z] | [#x00C0-#x00D6] | [#x00D8-#x00F6] | [#x00F8-#x02FF] | [#x0370-#x037D] | [#x037F-#x1FFF] | [#x200C-#x200D] | [#x2070-#x218F] | [#x2C00-#x2FEF] | [#x3001-#xD7FF] | [#xF900-#xFDCF] | [#xFDF0-#xFFFD] | [#x10000-#xEFFFF]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1226
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1227
<tr id="grammar-production-PN_CHARS_U">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1228
    <td>[164s]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1229
    <td><a href="#grammar-production-PN_CHARS_U">PN_CHARS_U</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1230
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1231
    <td><a href="#grammar-production-PN_CHARS_BASE">PN_CHARS_BASE</a> | '<code class="grammar-literal">_</code>'</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1232
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1233
<tr id="grammar-production-PN_CHARS">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1234
    <td>[166s]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1235
    <td><a href="#grammar-production-PN_CHARS">PN_CHARS</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1236
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1237
    <td><a href="#grammar-production-PN_CHARS_U">PN_CHARS_U</a> | '<code class="grammar-literal">-</code>' | [0-9] | #x00B7 | [#x0300-#x036F] | [#x203F-#x2040]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1238
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1239
<tr id="grammar-production-PN_PREFIX">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1240
    <td>[167s]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1241
    <td><a href="#grammar-production-PN_PREFIX">PN_PREFIX</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1242
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1243
    <td><a href="#grammar-production-PN_CHARS_BASE">PN_CHARS_BASE</a> ((<a href="#grammar-production-PN_CHARS">PN_CHARS</a> | '<code class="grammar-literal">.</code>')* <a href="#grammar-production-PN_CHARS">PN_CHARS</a>)?</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1244
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1245
<tr id="grammar-production-PN_LOCAL">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1246
    <td>[168s]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1247
    <td><a href="#grammar-production-PN_LOCAL">PN_LOCAL</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1248
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1249
    <td>(<a href="#grammar-production-PN_CHARS_U">PN_CHARS_U</a> | '<code class="grammar-literal">:</code>' | [0-9] | <a href="#grammar-production-PLX">PLX</a>) ((<a href="#grammar-production-PN_CHARS">PN_CHARS</a> | '<code class="grammar-literal">.</code>' | '<code class="grammar-literal">:</code>' | <a href="#grammar-production-PLX">PLX</a>)* (<a href="#grammar-production-PN_CHARS">PN_CHARS</a> | '<code class="grammar-literal">:</code>' | <a href="#grammar-production-PLX">PLX</a>))?</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1250
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1251
<tr id="grammar-production-PLX">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1252
    <td>[169s]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1253
    <td><a href="#grammar-production-PLX">PLX</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1254
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1255
    <td><a href="#grammar-production-PERCENT">PERCENT</a> | <a href="#grammar-production-PN_LOCAL_ESC">PN_LOCAL_ESC</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1256
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1257
<tr id="grammar-production-PERCENT">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1258
    <td>[170s]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1259
    <td><a href="#grammar-production-PERCENT">PERCENT</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1260
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1261
    <td>'<code class="grammar-literal">%</code>' <a href="#grammar-production-HEX">HEX</a> <a href="#grammar-production-HEX">HEX</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1262
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1263
<tr id="grammar-production-HEX">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1264
    <td>[171s]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1265
    <td><a href="#grammar-production-HEX">HEX</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1266
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1267
    <td>[0-9] | [A-F] | [a-f]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1268
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1269
<tr id="grammar-production-PN_LOCAL_ESC">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1270
    <td>[172s]</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1271
    <td><a href="#grammar-production-PN_LOCAL_ESC">PN_LOCAL_ESC</a></td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1272
    <td>::=</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1273
    <td>'<code class="grammar-literal">\</code>' ('<code class="grammar-literal">_</code>' | '<code class="grammar-literal">~</code>' | '<code class="grammar-literal">.</code>' | '<code class="grammar-literal">-</code>' | '<code class="grammar-literal">!</code>' | '<code class="grammar-literal">$</code>' | '<code class="grammar-literal">&amp;</code>' | "<code class="grammar-literal">'</code>" | '<code class="grammar-literal">(</code>' | '<code class="grammar-literal">)</code>' | '<code class="grammar-literal">*</code>' | '<code class="grammar-literal">+</code>' | '<code class="grammar-literal">,</code>' | '<code class="grammar-literal">;</code>' | '<code class="grammar-literal">=</code>' | '<code class="grammar-literal">/</code>' | '<code class="grammar-literal">?</code>' | '<code class="grammar-literal">#</code>' | '<code class="grammar-literal">@</code>' | '<code class="grammar-literal">%</code>')</td>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1274
</tr>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1275
  </tbody>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1276
</table>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1277
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1278
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1279
    </section>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1280
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1281
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1282
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1283
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1284
    <section class="appendix informative" id="updatelist-algo" typeof="bibo:Chapter" resource="#updatelist-algo" property="bibo:hasPart">
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1285
      <!--OddPage--><h2 id="h-updatelist-algo" resource="#h-updatelist-algo"><span property="xhv:role" resource="xhv:heading"><span class="secno">A. </span>UpdateList Algorithm</span></h2><p><em>This section is non-normative.</em></p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1286
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1287
      <p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1288
          Below is an algorithm explaining how <code>UpdateList s p i<sub>min</sub>..i<sub>max</sub> collection</code> can be processed in the presence of a reified <code>rdf:List</code>, i.e. encoded with <code>rdf:first</code> and <code>rdf:rest</code>. Implementers may take advantage of a more native encoding for <code>rdf:List</code>.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1289
      </p>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1290
      <ul>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1291
          <li>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1292
              <b class="algo">Let</b> <var>s<sub>pre</sub></var> be <var>s</var>, <var>p<sub>pre</sub></var> be <var>p</var> and <var>o<sub>pre</sub></var> the object of the triple (<var>s</var>, <var>p</var>, ?) from the <a href="#dfn-target-graph" class="internalDFN" data-link-type="dfn">target graph</a>.
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1293
          </li>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1294
          <li>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1295
              <b class="algo">Repeat</b> <var>i<sub>min</sub></var> times:
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1296
              <ul>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1297
                  <li>
d4e249a5bf19 Switched from CR to WG Note
Andrei Sambra <andrei@w3.org>
parents:
diff changeset
  1298
                      <b class="algo">Set</b> <var>s<sub>pre</sub></var> to <var>o<sub>pre</sub></var>, <var>p<sub>pre</sub></var> to <code>rdf:rest</code> and <var>o<sub>pre</sub></var> to the object of the triple (<var>o<sub>pre</sub></var>, <code>rdf:rest</code>, ?) from the <a href="#dfn-target-graph" class="internalDFN" data-link-type="dfn">target graph</a>.
d4e249a5bf19 Switched from CR to W