Issue Details (XML | Word | Printable)

Key: MDOAP-24
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
Reporter: Tim Fliss
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Maven 2.x DOAP Plugin

programing-language, os and name properties should be an RDF literals, not a RDF resources.

Created: 29/Sep/09 02:33 PM   Updated: 29/Sep/09 02:33 PM
Component/s: None
Affects Version/s: 1.1
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. File doap-language-bugreport.tgz (1 kB)
2. File maven-doap-plugin.diff (5 kB)

Environment: Any

Testcase included: yes
Patch Submitted: Yes


 Description  « Hide

Summary
The programming-language, os, and name properties are literals, not URIs. They should not be written as rdf:resources in the RDF output.

The Problem
While the resulting RDF will validate, what happens is that an RDF parser will interpret <programming-language rdf:resource="java" /> as a URI fragment. (see the attached incorrect doap-language-bugreport.tgz:/target/site/doap_doap-language.rdf)
Since there is no explicit xml:base in the DoaP file generated by the plugin, the resulting URL is based on the default supplied by the RDF parser. For example using the W3C RDF Validator yields: http://www.w3.org/RDF/Validator/run/java rather than simply "java"
XML Base for RDF is specified at: see http://www.w3.org/TR/2003/PR-rdf-syntax-grammar-20031215/#section-Syntax-ID-xml-base
Also note that the Apache Doap instructions correctly do not have rdf:resource for the programming language element: http://projects.apache.org/languages.html

The Fix
Instead of <programming-language rdf:resource="java" />, the plugin should generate <programming-language>java</programming-language>.
Similar changes apply to the os and name properties.

Validation
I am attaching diffs that include changes to the unit tests. Also, the RDF validator at http://www.w3.org/RDF/Validator/direct may be used to demonstrate that the progamming language, etc. elements are getting resolved to: http://www.w3.org/RDF/Validator/run/java rather than simply "java". Simply "java" is what it should be.



There are no comments yet on this issue.