Fragment identifier
From RdC-Wiki
Names
Locator, Internal Resource Locator, Fragment Locator
Definition
An expression giving a point or range in a resource.
Examples
- A defined label <a name="myLabel1" /><div id="myLabel2"> ... </div>
- A time range in a video/audio clip
- A coordinate in a graphic
- An XPath/XPointer expression giving a location in a HTML/XML document
- A regular expression for the preceding/posterior text
Observations
- A resource (e.g. and HTML) might explicitly define original locations, but annotations might be done over agregated locations (not original)
- The Resource reference should have an enumeration of the available/used locations
- An aggregated location should have an expression (e.g. an XPointer, or a regex). It should have an alias so if the resource is changed, it might not affect the annotations (if the expressions are conveniently changed)
- When resources are changed, existing locations might dissapear.
- Existing locations should be visible to an annotation editor, so she can choose to reuse existing locations
Further reading
@@@ CHECKPOINT: Compile the information @@@
Analysis
- Considering the locator might be URL-encoded, the locator expressions should avoid the special chars (#,&,=)
- (field) name/alias (might be the expression hash)
- (field) locator type
- (field) locator expression