Skip to content

Commit 9720f1d

Browse files
authored
Merge pull request #405 from w3c/citation-urls-improvements
Citation improvements
2 parents b32da16 + 46adca5 commit 9720f1d

File tree

1 file changed

+21
-13
lines changed

1 file changed

+21
-13
lines changed

serialization-html-note/index-turtle-not-highlight.html

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -164,15 +164,15 @@
164164
rawDate: "2016-04-26",
165165
status: "Unofficial Draft"
166166
},
167-
"selectors-states": {
167+
"selector-note": {
168168
"authors": [
169169
"Ivan Herman",
170170
"Robert Sanderson",
171171
"Paolo Ciccarese",
172172
"Benjamin Young"
173173
],
174174
title: "Selectors and States",
175-
href: "http://w3c.github.io/web-annotation/selectors/",
175+
href: "http://w3c.github.io/web-annotation/selector-note/",
176176
publisher: "W3C",
177177
rawDate: "2017-01-20",
178178
status: "Reference Note"
@@ -205,7 +205,7 @@
205205
<p>This Note describes and illustrates potential approaches for including annotations
206206
within HTML documents. Examples also are included illustrating the use within an HTML document
207207
of annotation Selectors as fragment identifiers . (The Working Group's Selectors and States Reference
208-
Note [[selectors-states]] defines the syntax used for Selectors as fragment identifiers.)p>
208+
Note [[selector-note]] defines the syntax used for Selectors as fragment identifiers.)p>
209209

210210
<p>The approaches described in this document are incomplete and preliminary. They do not exhaust the full range of feasible options.
211211
The approaches discussed in this note have emerged from Working Group discussions and should be considered no more
@@ -597,40 +597,48 @@

Example

597597

598598
<section>
599599
<h3>Web Annotation-based Citation URLsh3>
600-
<p>The Selectors and States Note [[selectors-states]] published by the Web Annotation Working Group includes information on encoding
601-
<a data-cite="selectors-states#frags">Web Annotation Selectors and State classes as IRI Fragmenet Identifiersa>. The following
600+
<p>The Selectors and States Note [[selector-note]] published by the Web Annotation Working Group includes information on encoding
601+
<a data-cite="selector-note#frags">Web Annotation Selectors and State classes as IRI Fragment Identifiersa>. The following
602602
examples show how these URLs could be used to reference portions of a Specific Resource on the Web via IRIs:
603603
p>
604604

605605
<h4>Example using <blockquote> and <q> tagsh4>
606606

607607
<pre class="example highlight" title="Example blockquote and q tags using the cite attribute">
608-
<blockquote cite="https://www.w3.org/TR/annotation-model/">
608+
<blockquote cite="https://www.w3.org/TR/annotation-model/#introduction">
609609
<q cite="https://www.w3.org/TR/annotation-model/#selector(type=TextPositionSelector,start=8424,end=8270)">
610610
An annotation is considered to be a set of connected resources, typically including
611611
a body and target, and conveys that the body is related to the target.</q>
612612

613613
<q cite="https://www.w3.org/TR/annotation-model/#selector(type=TextPositionSelector,start=8651,end=8576)">
614614
This perspective results in a basic model with three parts, depicted below.</q>
615615

616-
<!-- TODO: how do we make this an annotation? -->
617-
<img src="images/intro_model.png" alt="Basic Model: Annotation, Body and Target" width="400"/>
618-
</blockquote>
616+
<q cite="https://www.w3.org/TR/annotation-model/#selector(type=XPathSelector,value=//*[@id%3D%22introduction%22]/img)">
617+
<img src="images/intro_model.png" alt="Basic Model: Annotation, Body and Target" width="400"/>
618+
</q>
619+
blockquote>
619620
pre>
620621

621-
<p>The Selectors and States Note [[selectors-states]] explains that fragment identifiers are technically defined when the media
622+
<p>In this example, the <code><blockquote>code>'s <code>citecode> attribute is set to a typical HTML fragment identifier.
623+
The <code><q>code> tags use <code>citecode> attribute values set to Web Annotation Selector Fragment Identifiers—which
624+
are convertable into Web Annotation Data Model [[annotation-model]] Selector statements. The <code><img>code> tag is also
625+
wrapped in a <code><q>code> as it's location is not directly contained in either of the previously quoted section. However,
626+
all of the quotations (within the <code><q>code> tags) exist within the <code>#introductioncode> section referenced
627+
by the surrounding <code><blockquote>code>.
628+
629+
<p>The Selectors and States Note [[selector-note]] explains that fragment identifiers are technically defined when the media
622630
type is specified. However in practice the utilization of fragment identifiers by publishers and developers ranges from
623631
browser state handling to anchoring highlights of quotations (as seen here).p>
624632

625-
<p>Using these fragement identifiers as values of the <code>citecode> attribute on <code><blockquote>code>
633+
<p>Using these fragment identifiers as values of the <code>citecode> attribute on <code><blockquote>code>
626634
and <code><q>code> tags provides a means for both specificity and future extensibility. Site authors as well as
627635
browser, server, and JavaScript developers may take advantage of these citations identifiers for re-anchoring selection
628-
or extracting (and verifying) quotions made within an HTML document which uses this method.p>
636+
or extracting (and verifying) quotations made within an HTML document which uses this method.p>
629637

630638
<h4>Example using an <a> tagh4>
631639

632640
<p>Using the same methods described above, <code><a>code> tags may also be used to express a desired highlight or reference. However,
633-
as mentioned above, the use of that fragement within the retrieved resource may vary.p>
641+
as mentioned above, the use of that fragment within the retrieved resource may vary.p>
634642

635643
<pre class="example highlight" title="Example using an anchor tag">
636644
<p>According to the Web Annotation Data Model spec

0 commit comments

Comments
 (0)