Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

Is there any way to write duplicate resources(as below) to RDF file.

<rdf:li xmlns:rdf="#unknown">
<rdf:description rdf:about="http://example.org/Bermuda/attorneyBlock/attorneyLine/attorneyText1/MalcolmEWheeler">
<rdf:markedtext>Malcolm E. Wheeler
<rdf:beginoffset>12
<rdf:length>18
<rdf:type>person


<rdf:li xmlns:rdf="#unknown">
<rdf:description rdf:about="http://example.org/Bermuda/attorneyBlock/attorneyLine/attorneyText1/MalcolmEWheeler">
<rdf:markedtext>Malcolm E. Wheeler
<rdf:beginoffset>206
<rdf:length>18
<rdf:type>person




I have to carry the URI ending with the value in rdf:markedText and this resulting in 2 duplicate resources. I have to retain the duplicates as it is as the rdf:beginOffSet property value is not same.
I am keeping all the resources in bag. Currently RDF is generated as below:

<rdf:li xmlns:rdf="#unknown">
<rdf:description rdf:about="http://example.org/Bermuda/attorneyBlock/attorneyLine/attorney1/MalcolmEWheeler">
<rdf:beginoffset>206
<rdf:markedtext>Malcolm E. Wheeler
<rdf:beginoffset>12
<rdf:length>18


<rdf:li rdf:resource="http://example.org/Bermuda/attorneyBlock/attorneyLine/attorney1/MalcolmEWheeler" xmlns:rdf="#unknown">

Second resource is referring the first one which should not be in my case.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900