TWiki
>
IVOA Web
>
IvoaDAL
>
DALI-1_1-Errata
>
DALI-1_1-Erratum-1
(2023-04-05,
JamesDempsey
)
(raw view)
E
dit
A
ttach
---+ DALI 1.1 Erratum 1: Drop resource attribute on continuation Author: Markus Demleitner Date last changed: 2023-01-20 Date accepted: 2023-04-05 ---+ Rationale In section 2.3.4, DALI 1.1 says: <blockquote> If the examples are spread over multiple linked documents, the links to documents with additional examples must be within the parent element defining the vocab attribute and the link elements must contain the following additional attributes: a property attribute with the value continuation, a resource attribute with an empty value (referring to the current document), and the href attribute with the URL of another document formatted as above (i.e. another collection of examples that clients should read to collect the full set of examples). </blockquote> During implementation, it was noticed that the regulation on the =resource= attribute yields bad RDF triples, as the =resource= attribute, rather than making the current document the subject of the =continuation= triple as claimed by the current specification language, actually changes the object of the triple (to the current document). Indeed, the subject defaults to the current document (and if it didn't, the ==about== attribute would have to be used to change it). Expressed in Turtle, the current specification would yield <pre><> example:continuation <> </pre> that is, the current document is the continuation of the current document, which clearly is nonsensical. What instead should be expressed by markup like <pre><a property="continuation" href="http://dc.g-vo.org/rr/q/ex/examples" >RegTAP queries </pre> is <pre><> example:continuation <http://dc.g-vo.org/rr/q/ex/examples></pre> This is accomplished by not having any =resource= attribute. ---+ Erratum content In section 2.3.4 strike the phrase <blockquote> , a resource attribute with an empty value (referring to the current document), </blockquote> ---+ Impact assessment TAP services that already make use of continuation will should drop the resource attribute. With the change, clients using RDFa parsers to evaluate DALI examples documents will correctly interpret the continuation markup; hence, it would unbreak them. In practice, I expect no impact at all. Firstly, a census of TAP examples using <pre>import re import sys from pyvo import registry import requests for rec in registry.search(servicetype="tap"): exurl = rec.get_service("tap")._baseurl+"/examples" try: extx = requests.get(exurl, timeout=2).text except requests.exceptions.RequestException as ex: sys.stderr.write(f"Broken {exurl}: {ex}\n") if re.search(r"property\s*=\s*.continuation.", extx): print(f"Has continuation: {exurl}") </pre> shows that only one site currently has a continuation (and that already has dropped the resource attribute). In addition, for all I know, no client is parsing example documents using RDF tooling. <br /> <!-- * Set ALLOWTOPICRENAME =<span class="WYSIWYG_PROTECTED"><span class="WYSIWYG_PROTECTED"> IVOA.TWikiAdminGroup</span></span> -->
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r3 - 2023-04-05
-
JamesDempsey
IVOA
Log in
or
Register
IVOA.net
Wiki Home
WebChanges
WebTopicList
WebStatistics
Twiki Meta & Help
IVOA
Know
Main
Sandbox
TWiki
TWiki intro
TWiki tutorial
User registration
Notify me
Working Groups
Applications
Data Access Layer
Data Model
Grid & Web Services
Registry
Semantics
Interest Groups
Data Curation
Education
Knowledge Discovery
Operations
Radio Astronomy
Solar System
Theory
Time Domain
Committees
Stds&Procs
www.ivoa.net
Documents
Events
Members
XML Schema
Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback