I have a RDF file that contains resources with rdfs:label already assigned to them. What I am trying to achieve is to add additional skos:prefLabel for every rdfs:label instance in the document.
I was trying to use CONSTRUCT to do it, but the rdfs:label get replaced by skos:prefLabel, which is wrong because I want to add the skos:prefLabel in addition to the existing rdfs:label.
Hopefully someone can help on this.
I am using TopBraid Composer, And please bear with me I am noob in SPARQL and all the semantic web technologies.
I was trying to make the below query work:
First, it seems that you have the concepts mixed up a little. It looks like you are trying to change types fo your labels. For one thing, rdfs:label is a property and not a class so placing it as object next to rdf:type (which a stands for) makes little sense. Other than that you don't reference the actual labelled resources in your WHERE graph pattern as I have expected to see.
From your description I understand that you want to find all resources labelled with rdfs:label and add similar triples with skos:prefLabel instead. Provided that your file contains triples like
You should be using a CONSTRUCT like
and then combine the resulting graph with what you already have.
Thanks so much Tomasz,
Your suggestion helped me to do what I was looking for with the following query:
answered 06 Nov '12, 14:48