RDF UI is lax about the mapping it allows, to the point where something like foo:ba is allowed when foo has no know namespace. Maybe there could be a feature to grab the most popular namespace from prefix.cc, but at least there should be some warning message indicating that the namespace was not defined on the site, otherwise this leads to invalid RDF ouput.

CommentFileSizeAuthor
#1 1158886-01-no-namespace-warning.patch3.07 KBlinclark

Comments

Anonymous’s picture

Status: Active » Needs review
StatusFileSize
new3.07 KB

This patch outputs a warning when a prefix is unbound. It also adds tests for the notification.

I also correct the logic for the CURIE check... however, I'm not sure that the CURIE check actually works. I think we might want to remove that anyway, since people can use full URIs for predicates.

clayball’s picture

Status: Needs review » Reviewed & tested by the community

Patch looks good. The warnings are a great addition :) of course, invalid RDF output is still possible but at least now I'm told that something is not right and (very important) where I can fix it.

scor’s picture

Status: Reviewed & tested by the community » Fixed

thanks for testing Clay. fixed with http://drupalcode.org/project/rdfx.git/commit/3418170

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.