Mercurial > hg > audio-features-catalogue
diff rdfpy/writeMarsyasOnto.py @ 15:53069717108c
fuxi base literal update
author | nothing@tehis.net |
---|---|
date | Sun, 14 Apr 2013 17:54:23 +0100 |
parents | 62d2c72e4223 |
children |
line wrap: on
line diff
--- a/rdfpy/writeMarsyasOnto.py Thu Apr 04 16:25:39 2013 +0100 +++ b/rdfpy/writeMarsyasOnto.py Sun Apr 14 17:54:23 2013 +0100 @@ -66,10 +66,16 @@ for su in source.subjects(RDF.type, RDFS.Resource): idref = URIRef(local+su.split('/')[-1]) +# graph.add(( +# idref, +# RDF.type, +# OWL.Class +# )) + graph.add(( idref, RDF.type, - OWL.Class + URIRef(local+"AudioFeature") )) count = sum(1 for _ in source.objects(su,URIRef('file:///Users/alo/MusicOntology/features/rdf/type')))