[ 
https://issues.apache.org/jira/browse/STANBOL-1057?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13649167#comment-13649167
 ] 

Rupert Westenthaler commented on STANBOL-1057:
----------------------------------------------

The problem is that prefix.cc supports namespaces ending with ':'

One Example was 

   biocore -> http://bio2rdf.org/core:

an other is 

    category -> http://dbpedia.org/resource/Category:

The problem here is that in the first example the namespace declaration is 
simple wrong, as the ':' in the end should be a '#' instead. In the second 
example the ':' is correct as concepts do use 
"http://dbpedia.org/resource/Category:France";. However in this case "Category:" 
is already part of the local name. So the correct prefix would be 
"dbp:Category:France".

Because of that the decision for the namespace prefix service was to simple 
ignore invalid namespace declarations instead of trying to fix illegal one by 
adding a '#' or '/'
                
> Invalid Namespace Mappings from popular prefixes at prefix.cc
> -------------------------------------------------------------
>
>                 Key: STANBOL-1057
>                 URL: https://issues.apache.org/jira/browse/STANBOL-1057
>             Project: Stanbol
>          Issue Type: Bug
>          Components: Commons
>            Reporter: Sergio Fernández
>            Priority: Trivial
>              Labels: prefix
>
> Checking my logs I realized this errors:
> 09:12:54.806 INFO  - Load Namespace Prefix Mappings form 
> http://prefix.cc/popular/all.file.txt
> 09:12:55.187 WARN  - Invalid Namespace Mapping: prefix 'biocore' valid , 
> namespace 'http://bio2rdf.org/core:' invalid -> mapping ignored!
> Basically the validation fails because those namespace are neither hash nor 
> slash uris.
> If would like to change the behavior just appending the hash on those 
> situations, I could submit a patch based on what we are doing in Marmotta, 
> see:
> https://git-wip-us.apache.org/repos/asf?p=incubator-marmotta.git;a=blob;f=platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/services/prefix/PrefixServiceImpl.java;h=ac136fef38940feb60b1bb624e55278d7e162970;hb=HEAD#l141
>  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to