You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After consuming Attean::API::AbbreviatingSerializer, the serializer will have a namespaces attribute. When serializing IRIs as links, check to see if the IRI can be shortened to a prefixname based on the URI prefixes in the namespaces (URI::NamespaceMap) object. The Turtle serializer has code that shortens IRIs to prefixnames that can be used as a guide for how to do it.
In the end, you should end up with an HTML link for IRIs that (assuming the right prefixes are defined) looks something like:
The only code that needs to change is in AtteanX::Serializer::SPARQLHTML::node_as_html. Following the Turtle serializer code, this should be a very simple task.
The text was updated successfully, but these errors were encountered:
Emit prefix names as the link text for IRIs.
After consuming
Attean::API::AbbreviatingSerializer
, the serializer will have anamespaces
attribute. When serializing IRIs as links, check to see if the IRI can be shortened to a prefixname based on the URI prefixes in thenamespaces
(URI::NamespaceMap
) object. The Turtle serializer has code that shortens IRIs to prefixnames that can be used as a guide for how to do it.In the end, you should end up with an HTML link for IRIs that (assuming the right prefixes are defined) looks something like:
The only code that needs to change is in
AtteanX::Serializer::SPARQLHTML::node_as_html
. Following the Turtle serializer code, this should be a very simple task.The text was updated successfully, but these errors were encountered: