W3C home > Mailing lists > Public > www-rdf-dspace@w3.org > October 2003

RE: Tools for investigating schemas

From: Butler, Mark <Mark_Butler@hplb.hpl.hp.com>
Date: Wed, 22 Oct 2003 18:23:21 +0100
Message-ID: <E864E95CB35C1C46B72FEA0626A2E8082061F2@0-mail-br1.hpl.hp.com>
To: "'www-rdf-dspace@w3.org'" <www-rdf-dspace@w3.org>

Hi team,

Two more examples:

5. This will extract all the classes created in the artstor.xsl stylesheet,
as they use the vra namespace prefix:

grep -o -e '<vra:[A-Z][A-Za-z]*>' artstor.xsl | sort | sed
's/vra:/http:\/\/web.mit.edu\/simile\/2003\/10\/vraCore3#/g'

6. And this will do the same for the properties created in the artstor
stylesheet:

grep -o -e '<vra:[a-z][A-Za-z]*>' artstor.xsl | sort | sed
's/vra:/http:\/\/web.mit.edu\/simile\/2003\/10\/vraCore3#/g'

and you can use grep to clean up the output of the previous examples e.g. 

java jena.rdfquery --n3 -data "$1" 
"SELECT ?r WHERE (?r, 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>, 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Property>)"  
| grep -o -e '<.*>' | sort | uniq

kind regards,

Dr Mark H. Butler
Research Scientist                HP Labs Bristol
mark-h_butler@hp.com
Internet: http://www-uk.hpl.hp.com/people/marbut/
Received on Wednesday, 22 October 2003 13:24:54 EDT

This archive was generated by hypermail pre-2.1.9 : Wednesday, 22 October 2003 13:24:58 EDT