jupyrdf / ipyradiant

Jupyter widgets for working with RDF graphs.
BSD 3-Clause "New" or "Revised" License
5 stars 7 forks source link

Investigating jsonld for URI collapsing #47

Open lukasnijhawan opened 3 years ago

lukasnijhawan commented 3 years ago

When looking to truncate the display of a URIRef but still gain access to the data associated with said term... need to investigate jsonld as an implementation of this feature.

Also, investigate use of CSS to truncate the URIRef names. For example, class RDFCSSLabeler(HTML) that is attached to a style sheet and can then automatically represent RDF URIRefs as their truncated form.

zwelz3 commented 3 years ago

Current implementation strategy is to use NamespaceManager for simple collapsing. image

JSON-LD context application would allow us to maintain the actual data used (e.g. namespace and fragment). This would help, because "you always want the most machine readable information available, but show the most humane version" (-Nick).

Example from Nick: image Would probably require custom widget and custom typescript (native selection widgets don't let you have duplicate labels).