JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for DC-ARCHITECTURE Archives


DC-ARCHITECTURE Archives

DC-ARCHITECTURE Archives


DC-ARCHITECTURE@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

DC-ARCHITECTURE Home

DC-ARCHITECTURE Home

DC-ARCHITECTURE  July 2002

DC-ARCHITECTURE July 2002

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Implementing the DCQ RDF/XML proposal

From:

Douglas Campbell <[log in to unmask]>

Reply-To:

DCMI Architecture Group <[log in to unmask]>

Date:

Fri, 26 Jul 2002 11:24:11 +1200

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (118 lines)

Kia ora,

A while back I remember seeing a request on the list to share attempts at implementing the DCQ RDF/XML proposal [1].  We are currently defining the metadata framework for our digital library [who isn't], and here is where we are at so far...

We are using qualified DC and storing in XML (using Endeavor Information Systems' "ENCompass" product [2] ).  We looked at Andy Powell and Pete Johnson's guidelines [3], but felt if you follow those guidelines you're only a couple of steps away from the RDF/XML proposal, so we decided to take the plunge and give RDF a go.

We don't use any RDF engines, so for us it is a case of using the proposal purely as a DTD/schema for our XML - we use XSLT stylesheets to interrogate the XML as XML (not RDF tuples).  The benefit is we get XML encoding usable by XSLT which is also RDF compliant.  Incidentally, I couldn't find any DTD or schema for RDF/XML except for one created by Rick Jelliffe two years ago [4] - is this the only one?

We have a number of local (non-DCMI) elements and qualifiers, so we created an RDF schema [5], which we modelled on the DCMI proposal and more recently Roland Schwaenzl's version of the DCQ RDF/XML Schema [6], to declare these.  We tested some sample records [7] against the W3C RDF Validation Service [8] and they seemed OK (NB: Not all our handles [9] are operational yet).  As our system uses DTDs not XML Schema, we created a DTD too [10].

Experiences:

1. The DCMI proposal schema states an <rdf:value> node is mandatory when using an encoding scheme for dc:subject.  We inferred that it was optional when using encoding schemes in other elements.  However the W3C Validator did not agree, eg:

<?xml version="1.0" encoding="utf-8" ?> 
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:dc="http://purl.org/dc/elements/1.1/" 
    xmlns:dcq="http://purl.org/dc/terms/">
<rdf:Description rdf:about="hdl:1727.11/00000089">
  <dc:title>This top-heavy government; what you have to pay for. [1949].</dc:title>
  <dcq:medium>
    <dcq:IMT>image/jpeg</dcq:IMT>
  </dcq:medium>
</rdf:Description>
</rdf:RDF>

...returns an error:
"Error: {E202} Expected whitespace found: 'image/jpeg'.[Line = 8, Column = 24]"
==> We decided to always use <rdf:value> nodes around the data - this seems to work.

2. Confusingly, DCMIType is handled differently to other encoding schemes in the DCMI proposal.  In Roland Schwaenzl's version it is treated the same as others, so we have used that version (previously we had re-defined the DCMIType encoding scheme within our nlnzdl namespace to make it consistent).

3. It was confusing what the best practice is for the namespace URI, for example we considered:
  http://digital.natlib.govt.nz/metadata# 
  http://www.natlib.govt.nz/nlnzdl/1.0# 
  http://www.natlib.govt.nz/2002/06/nlnzdl# 
  hdl:1727.11/00000001# 
The DCMI namespace policy [11] suggests versions and dates are not helpful long-term and versioning information should appear in the descriptions - currently the http://purl.org/dc/terms/ URI resolves to a URI that contains a date in the URL with no versioning information in each property description...
The safest for now seemed to be: http://www.natlib.govt.nz/dl# 
We're following Roland Schwaenzl's version for incorporating version dating in our RDF schema.
Hopefully this will accomodate future changes to the schema.

4. According to SWAG's "RDF Namespaces Best Practices" [12] our nlnzdl namespace URI shouldn't end with a hash (#):
   "Note: Issues have recently been raised with the 
   use of the "#" in RDF namspaces. It is expected 
   that the W3C's Technical Architecture Group will 
   discuss the issue, but until then it may be preferable 
   to end your namespace using a "/" or a "?" 
It appears to use a "/" means each property would need to be defined in a separate RDF schema file on the server.  We decided to risk the #-terminated single-file version for now (as we're currently in "pilot mode").  

5. This next issue is probably obvious to RDFers.  We have multiple links to various size/format digital objects.  Putting just the URI inside Relation refinements doesn't give enough information to be able to distinguish between them.  We decided to use EAD [13] elements (or possibly METS [14] elements in the future).  However, the W3C validator didn't like the multiple nested XML elements (multiple ead:daoloc inside an ead:daogrp), eg:

<?xml version="1.0" encoding="utf-8" ?> 
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:dc="http://purl.org/dc/elements/1.1/" 
    xmlns:dcq="http://purl.org/dc/terms/" 
    xmlns:ead="http://www.natlib.govt.nz/dl#">
<rdf:Description rdf:about="hdl:1727.11/00000089">
  <dc:title>This top-heavy government; what you have to pay for. [1949].</dc:title>
  <ead:daogrp>
    <ead:daoloc ead:role="thumbnail" ead:behavior="image/jpeg" ead:href="ephanznationalparty19490105_00000089_tn.jpg" /> 
    <ead:daoloc ead:role="display" ead:behavior="image/jpeg" ead:href="EphANZNationalParty19490105_00000089_pv.jpg" /> 
    <ead:daoloc ead:role="reference" ead:behavior="image/jpeg" ead:href="ephanznationalparty19490105_00000089_df.jpg" ead:title="Digital image of This top-heavy government; what you have to pay for. [1949]. (83 KB)" /> 
    <ead:daoloc ead:role="source" ead:behavior="image/tiff" ead:href="ephanznationalparty19490105_00000089_ds.tif" ead:title="Digital source image of This top-heavy government; what you have to pay for. [1949]. (83 KB)" /> 
  </ead:daogrp>
</rdf:Description>
</rdf:RDF>

...the W3C validator returns the error:
"Error: {E201} Syntax error when processing general start element tag. Cannot have another XML element here. (Maybe one object has already been given as the value of the enclosing property).[Line = 10, Column = 3]"

Although I've just tried it again, and this time it didn't seem to mind so much!:
"Error: {E201} Unusual Syntax error when processing general start element tag. Encountered general start element tag Was expecting one of: XML ELEMENT CONTENT end element tag [Line = 10, Column = 5]"

For now we have removed the ead:daogrp wrapper, though we'd like to be able to resume using it so groups of links can be identified separately.

6. We hoped it may be possible to build an RDF schema now which would still be compliant with the final DCMI RDF/XML recommendation.  After attempting to apply subsequent comments on the listserv, we realised it is still too fluid.  We will have to use a "best guess" for now, and revise once the recommendation is finalised.

7. Of interest, some of our data is converted to DC from MARC.  Moslty because of historical reasons and partly for ease reasons we first convert the MARC into a simplistic XML format, eg:
  <metadata>
    <resource id="Eph-D-MORAN-1920s">
      <title>Buy lemons and make fresh lemonade.  [1920s].</title>
      <format qualifier="medium" scheme="IMT">image/jpeg</format>
      <identifier scheme="URI">hdl:1727.11.11/00000653</identifier>
    </resource>
  </metadata>
And then convert it into RDF/XML using XSLT.

This simple XML version was a little confusing to curatorial staff initially but they soon were reading it like pros (for their QA).  Especially useful was viewing/printing in IE5+ where the tags and data are presented in different colours.  However, the full-blown RDF version is much more daunting to read...

From an XSLT point of view, they're about the same complexity, it's just a question of using different XPATHs to the data.

8. Also possibly of interest, I created an XSLT stylesheet [15] to make reading our RDF schema easier (converts to HTML).  It works with Roland Schwaenzl's version too [16], but so far I have not genericised it any further (eg, it expects the DCQ namespace code to be dcterms).

We're open to comments and questions.

Thanx,
Douglas Campbell
Digital Initiatives Unit
National Library of New Zealand

[1] DCMI RDF/XML proposal - http://dublincore.org/documents/2002/04/14/dcq-rdf-xml/
[2] ENCompass - http://encompass.endinfosys.com/ 
[3] DC in XML Guidelines - http://dublincore.org/documents/2002/04/14/dc-xml-guidelines/
[4] XML schema for RDF - http://www.oasis-open.org/cover/xmlSchemaForRDF.html
[5] NLNZ's RDF schema - http://www.natlib.govt.nz/dl HTML verion: http://ead.natlib.govt.nz/meta/nlnzdlRDFschema.html
[6] R Schwaenzl's DCQ RDF schema - http://www.mathematik.uni-osnabrueck.de/projects/dcqual/qual21.3.1/Schema/A/dcterms
[7] Sample NLNZ records - http://ead.natlib.govt.nz/meta/nlnzdlsample.rdf
[8] W3C RDF Validator - http://www.w3.org/RDF/Validator/ 
[9] Handles - http://www.handle.net/ 
[10] NLNZ's DTD - http://ead.natlib.govt.nz/meta/nlnzdl.dtd
[11] DCMI Namespace Policy - http://dublincore.org/documents/2001/10/26/dcmi-namespace/
[12] RDF Namespaces Practice - http://swag.webns.net/rdfnsPractises [ I had difficulty accessing this page, it is also in the Internet Archive at http://web.archive.org/web/20010913135110/http://swag.webns.net/rdfnsPractises ]
[13] EAD - http://lcweb.loc.gov/ead/ 
[14] METS - http://lcweb.loc.gov/mets/ 
[15] RDFschema-2-HTML XSLT- http://ead.natlib.govt.nz/meta/presentRDFschema.xsl CSS: http://ead.natlib.govt.nz/meta/style.css
[16] R Schwaenzl's DCQ RDF schema in HTML - http://ead.natlib.govt.nz/meta/dctermsRDFschema.html 

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

February 2024
January 2024
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
December 2022
November 2022
September 2022
August 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
November 2021
October 2021
September 2021
August 2021
July 2021
May 2021
April 2021
March 2021
February 2021
January 2021
December 2020
November 2020
September 2020
August 2020
July 2020
June 2020
April 2020
March 2020
February 2020
January 2020
December 2019
November 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
December 2017
November 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
May 2007
April 2007
March 2007
February 2007
January 2007
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
December 2005
November 2005
September 2005
August 2005
July 2005
June 2005
April 2005
March 2005
February 2005
January 2005
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
March 2004
February 2004
January 2004
November 2003
October 2003
September 2003
August 2003
June 2003
May 2003
April 2003
March 2003
January 2003
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
December 2000
November 2000
October 2000


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager