cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Getting an error when trying to define a prefix for "schema.org"

argytzak
Node Link

Hi,

I am using Neo4j to import and export RDF data, where I use the following prefix for "schema.org".

@prefix schema: <http://schema.org/> .

I am importing my RDF data using "SHORTEN" for "handleVocabUris", so I follow this guide to define custom prefixes for my namespaces.

CALL n10s.nsprefixes.add("schema", "http://schema.org/");

However, when I do that, I get the following error:

Failed to invoke procedure `n10s.nsprefixes.add`: Caused by: n10s.utils.NamespacePrefixConflictException: Invalid prefix + namespace combination: http://schema.org/ is a standard namespace that has the associated standard prefix sch

It appears that Neosemantics is forcing the use of the "sch" prefix for schema.org. 

Can I override this restriction somehow? Otherwise I would have to change all my ontologies to use "sch" instead of "schema".

Thanks,

Aris

 

 

 

0 REPLIES 0