CARVIEW |
Select Language
HTTP/2 200
date: Fri, 10 Oct 2025 06:19:13 GMT
content-type: text/html
content-encoding: gzip
last-modified: Thu, 13 Jul 2023 17:27:15 GMT
cache-control: max-age=2592000, public
expires: Sun, 09 Nov 2025 01:52:01 GMT
vary: Accept-Encoding
access-control-allow-origin: *
x-request-id: 98c279da6c19b288
strict-transport-security: max-age=15552015; preload
x-frame-options: deny
x-xss-protection: 1; mode=block
cf-cache-status: HIT
set-cookie: __cf_bm=OZviu3JXAnNNYrGF7Q5i0mqTLZgFh466_BeFFpkJTcA-1760077153-1.0.1.1-oe6VUyfPlyiM7vz4VoX3SAJlzM1mmWuYIOBNjvr9gk3WWYMkD0bmAP_HzkhdVcv6Ywb.pTPD2QcVnvzrVhI8SJqsFLSeoIhLd.LItEhy3fo; path=/; expires=Fri, 10-Oct-25 06:49:13 GMT; domain=.w3.org; HttpOnly; Secure; SameSite=None
server: cloudflare
cf-ray: 98c4013c1d2ac7d3-BLR
alt-svc: h3=":443"; ma=86400
QNames As Anonymous First Class Objects from Sean B. Palmer on 2001-06-18 (www-rdf-interest@w3.org from June 2001)
QNames As Anonymous First Class Objects
- From: Sean B. Palmer <sean@mysterylights.com>
- Date: Tue, 19 Jun 2001 00:34:14 +0100
- To: <www-rdf-interest@w3.org>
- Cc: "Jonathan Borden" <jonathan@openhealth.org>, "Aaron Swartz" <aswartz@swartzfam.com>
- Message-ID: <068c01c0f84f$643b8120$ccec93c3@z5n9x1>
Has anyone done any previous work on modelling QNames as anonymous first class objects, by taking definitions from the non-normative namespace partitions section of the XMLNS recommendation [1]? It would seem to me that this is a pretty obvious and logical thing to do, although I did some searching through the archives, and only found stuff from July such as [2]. Perhaps Jon will have some comments on this. Basically, you can model the QNames easily in RDF is you simply create a set of expansions, which are all sub classes of ":QName". These are as defined in the XMLNS specification, and are ":ExpEType" and ":ExpAName". Further to that, you have the other predicates which are ":type", ":ns", (and for ":ExpAName") ":eltype", and ":elns". This allows us to refer to QNames with ease. Take for example the <title> element in the XHTML namespace. In RDF, this has the QName:- [ a :ExpEType; :type "title"; :ns "https://www.w3.org/1999/xhtml" ] . Taking the example from the XMLNS specification:- <section xmlns="urn:com:books-r-us"> <title>Book-Signing Event</title> <signing> <author title="Mr" name="Vikram Seth" /> <book title="A Suitable Boy" price="$22.95" /> </signing> </section> this has the QNames:- [ a :ExpEType; :type "section"; :ns "urn:com:books-r-us" ] . [ a :ExpEType; :type "title"; :ns "urn:com:books-r-us" ] . [ a :ExpEType; :type "signing"; :ns "urn:com:books-r-us" ] . [ a :ExpEType; :type "author"; :ns "urn:com:books-r-us" ] . [ a :ExpAName; :name "title"; :eltype "author"; :elns "urn:com:books-r-us" ] . [ a :ExpAName; :name "name"; :eltype "author"; :elns "urn:com:books-r-us" ] . [ a :ExpEType; :type "book"; :ns "urn:com:books-r-us" ] . [ a :ExpAName; :name "title"; :eltype "book"; :elns "urn:com:books-r-us" ] . [ a :ExpAName; :name "price"; :eltype "book"; :elns "urn:com:books-r-us" ] . This makes associations such as:- [ a :ExpEType; :type "label"; :ns "https://example.org/#" ] daml:equivalentTo [ a :ExpEType; :type "title"; :ns "https://www.w3.org/1999/xhtml" ] . remarkably trivial. Here's a short, non-complete (missing cardinalities) schema for the terms:- :QName daml:unionOf (:ExpEType :ExpAName) . :ns rdfs:domain :QName; rdfs:range rdfs:Literal . :type rdfs:domain :ExpEType; rdfs:range rdfs:Literal . :name rdfs:domain :ExpAName; rdfs:range rdfs:Literal . :eltype rdfs:domain :ExpAName; rdfs:range rdfs:Literal . :elns rdfs:domain :ExpAName; rdfs:range rdfs:Literal . Although I'm not sure what namespace one would use for these terms. BTW, going by this, it doesn't bother me too much that the concatenation mechanism is so different from the QNames mechanism, because the dataset of triples that is generated from XML RDF is not the same as the expanded element types and attribute names that you get from parsing the document tree as XML. Also, it is clearly possible to map QNames into triples. cf. [3], which is when I got started on this rant. [1] https://www.w3.org/TR/1999/REC-xml-names-19990114/#ns-expnames [2] https://lists.w3.org/Archives/Public/www-rdf-interest/2000Jul/0045 [3] "21:36:09" onwards in https://ilrt.org/discovery/chatlogs/rdfig/2001-06-18.txt -- Kindest Regards, Sean B. Palmer @prefix : <https://webns.net/roughterms/> . :Sean :hasHomepage <https://purl.org/net/sbp/> .
Received on Monday, 18 June 2001 19:35:18 UTC