Returns the term for the given node: the longest matching namespace of the prefix mapping is
abbreviated, literals carry their lexical form, and URIs no prefix matches carry the full URI.
public staticai.chatur.cortex.Termof(org.apache.jena.rdf.model.RDFNode node,
org.apache.jena.shared.PrefixMapping prefixes)
Returns the term for the given node: the longest matching namespace of the prefix mapping is
abbreviated, literals carry their lexical form, and URIs no prefix matches carry the full URI.
The longest match wins so the term does not depend on the iteration order of the prefix
mapping — unlike Jena's own shortForm, which returns the first matching namespace of a
HashMap and so can answer differently from run to run for a URI matched by more than
one declared prefix.
Parameters:
node - the node to describe
prefixes - the prefix mapping to abbreviate the URI against