jimregan / mlode

Automatically exported from code.google.com/p/mlode
0 stars 0 forks source link

RDF object value written in HTML #18

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use Ontosearch at http://www.ontosearch.com/  with keyword Barack Obama
2. Many Barack Obama as keywords will appear, just pick the first one.
3. Below This EID will appear: 
    http://www.ontosearch.com/2008/01/identification#EID-3b79064eeb9930abe4da398caf
c870ef
4. Copy and Paste the EID in Address bar, a file will be downloaded
5. Open it with text editor Copy the contents
6. Go to http://www.w3.org/RDF/Validator/ and paste it in the text area of 
"Test by Direct Input" and press parse RDF
7. Group of Errors appear

What is the expected output? What do you see instead?
Group of Errors appear with description:
"Relative URIs are not permitted in RDF"
which indicates that some RDF object values are written in the form of HTML 
other than literal or URI

How many triples are affected? (if less than 3-5% of the whole data set,
please set priority to _low_)

Please use labels and text to provide additional information.
The attached files provides the RDF file and file with the details of the Error

Original issue reported on code.google.com by mofeed.m...@gmail.com on 20 Jul 2012 at 11:17

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by mofeed.m...@gmail.com on 20 Jul 2012 at 11:32

GoogleCodeExporter commented 9 years ago
Note: data can also be fetched by replacing '#' with '%23' and curl :
curl -L -H "Accept: application/rdf+xml" 
"http://www.ontosearch.com/2008/01/identification%23EID-3b79064eeb9930abe4da398c
afc870ef"  

Error: {W136} Relative URIs are not permitted in RDF <a>[Line = 34, Column = 
107]
Error: {W136} Relative URIs are not permitted in RDF <href>[Line = 34, Column = 
107]
was caused by:
      <rdf:Description rdf:about="http://news.xinhuanet.com/english2010/world/2011-11/29/c_131275397.htm">
        <dc:date>2196-07-10T23:00:00Z</dc:date>
        <dc:title>
          <a
            href="http://news.xinhuanet.com/english2010/world/2011-11/29/c_131275397.htm" target="_blank">U.S., EU vow to revive growth, solve crisis</a>
        </dc:title>
        <dc:description>The United States and the European Union (EU) on Monday vowed to work together to revive economic growth and solve financial crisis, a U.S.-EU joint s...</dc:description>
      </rdf:Description>

Original comment by kur...@googlemail.com on 20 Jul 2012 at 3:54

GoogleCodeExporter commented 9 years ago

Original comment by kur...@googlemail.com on 20 Jul 2012 at 3:56

GoogleCodeExporter commented 9 years ago

Original comment by kur...@googlemail.com on 23 Jul 2012 at 12:52

GoogleCodeExporter commented 9 years ago
Recommended Fix:

Technical you could use Typed Literals such as XMLLiteral 
http://www.w3.org/TR/rdf-concepts/#section-XMLLiteral  instead of a plain 
literal, which does not allow relative XML tags such <a>  , but here you do not 
want to have the XML data in the dc:title property, so my suggestion is to 
strip the XML from the dc:title property and make it plain text. 

Original comment by kur...@googlemail.com on 24 Aug 2012 at 6:33

GoogleCodeExporter commented 9 years ago
What is the current status of this issue? please update the status.

Original comment by mohamedd...@gmail.com on 18 Sep 2012 at 1:53

GoogleCodeExporter commented 9 years ago
Fixed.

Original comment by christia...@ontos.com on 15 Mar 2013 at 10:15