annotate chord/urispace/README @ 27:d95e683fbd35 tip

Enable CORS on urispace redirects as well
author Chris Cannam
date Tue, 20 Feb 2018 14:52:02 +0000
parents 7902f428bc60
children
rev   line source
Chris@10 1 ChordSpace
Chris@10 2 ==========
Chris@10 3
Chris@10 4 Author: Yves Raimond
Chris@10 5 Email: yves@dbtune.org
Chris@10 6
Chris@10 7 Centre for Digital Music, Queen Mary University of London
Chris@10 8
Chris@10 9 =========
Chris@10 10
Chris@10 11 This program allows the creation of a service delivering RDF (designed
Chris@10 12 according to the chord ontology available at http://purl.org/ontology/chord/)
Chris@10 13 description of chord symbols, formatted using Christopher Harte's notation
Chris@10 14 (Harte, 2004, ISMIR).
Chris@10 15
Chris@10 16 Then, for example (if the service is available at http://purl.org/ontology/chord/symbol/, which
Chris@10 17 is the case):
Chris@10 18
Chris@10 19 $ curl -L -H "Accept: application/rdf+xml" "http://purl.org/ontology/chord/symbol/G:min(9)/b3"
Chris@10 20
Chris@10 21
Chris@10 22 <?xml version='1.0' encoding='UTF-8'?>
Chris@10 23 <!DOCTYPE rdf:RDF [
Chris@10 24 <!ENTITY ns1 'http://purl.org/ontology/chord/'>
Chris@10 25 <!ENTITY rdf 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
Chris@10 26 <!ENTITY xsd 'http://www.w3.org/2001/XMLSchema#'>
Chris@10 27 ]>
Chris@10 28
Chris@10 29 <rdf:RDF
Chris@10 30 xmlns:ns1="&ns1;"
Chris@10 31 xmlns:rdf="&rdf;"
Chris@10 32 xmlns:xsd="&xsd;"
Chris@10 33 >
Chris@10 34 <ns1:Chord rdf:about="&ns1;symbol/G:min(9)/b3">
Chris@10 35 <ns1:baseChord rdf:resource="&ns1;min"/>
Chris@10 36 <ns1:bass>
Chris@10 37 <ns1:ScaleInterval>
Chris@10 38 <ns1:degree rdf:datatype="&xsd;int">3</ns1:degree>
Chris@10 39 <ns1:modifier rdf:resource="&ns1;note/flat"/>
Chris@10 40 </ns1:ScaleInterval>
Chris@10 41 </ns1:bass>
Chris@10 42 <ns1:root rdf:resource="&ns1;note/G"/>
Chris@10 43 <ns1:with_interval>
Chris@10 44 <ns1:ScaleInterval>
Chris@10 45 <ns1:degree rdf:datatype="&xsd;int">9</ns1:degree>
Chris@10 46 </ns1:ScaleInterval>
Chris@10 47 </ns1:with_interval>
Chris@10 48 </ns1:Chord>
Chris@10 49
Chris@10 50 </rdf:RDF>
Chris@10 51
Chris@10 52
Chris@10 53 =========
Chris@10 54
Chris@10 55 Dependencies:
Chris@10 56 * SWI-Prolog and its semweb library
Chris@10 57 http://www.swi-prolog.org
Chris@10 58