It works! I was using the stable 2.12.0, and this change is enough. Thanks for the quick reply Andy.
Arthur. ________________________________ De : Andy Seaborne <[email protected]> À : [email protected] Envoyé le : Mardi 19 août 2014 14h37 Objet : Re: Is it normal that NodeFmtLib.str use a standard prefix map ? On 19/08/14 13:26, Arthur Vaïsse-Lesteven wrote: > Hi, > > My question is in the title : Is it normal that NodeFmtLib.str method use a > standard prefix map? > > The javadoc says :"Methods str generate a reparsable string. Methods > displayStr do not guarantee a reparsable string e.g. may use abbreviations > or common prefixes." > > But in fact when using str(Triple triple) I got result containing "rdf:type", > that is a common prefix. > Searching the why, I saw that the method use the > ARQConstants.getGlobalPrefixMap() as default prefixeMapping if none is > furnished. > > Isn't it contradicting the JAVADOC ? > > Arthur. > This is an issue that has been fixed. Try 2.12.1-SNAPSHOT rdf:type will not be used unless a prefix map is explicitly given. i.e.the documentation is right, the code was wrong. Andy
