RE: Tools for investigating schemas

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 UTC