comparison 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
comparison
equal deleted inserted replaced
14:c68793c3213a 15:53069717108c
64 URIRef(local+'Analysis'), 64 URIRef(local+'Analysis'),
65 )) 65 ))
66 66
67 for su in source.subjects(RDF.type, RDFS.Resource): 67 for su in source.subjects(RDF.type, RDFS.Resource):
68 idref = URIRef(local+su.split('/')[-1]) 68 idref = URIRef(local+su.split('/')[-1])
69 # graph.add((
70 # idref,
71 # RDF.type,
72 # OWL.Class
73 # ))
74
69 graph.add(( 75 graph.add((
70 idref, 76 idref,
71 RDF.type, 77 RDF.type,
72 OWL.Class 78 URIRef(local+"AudioFeature")
73 )) 79 ))
74 80
75 count = sum(1 for _ in source.objects(su,URIRef('file:///Users/alo/MusicOntology/features/rdf/type'))) 81 count = sum(1 for _ in source.objects(su,URIRef('file:///Users/alo/MusicOntology/features/rdf/type')))
76 82
77 if count > 0: 83 if count > 0: