Informatievlaanderen / VSDS-LDESServer4J

Linked Data Event Streams Server for Java
https://informatievlaanderen.github.io/VSDS-LDESServer4J
European Union Public License 1.2
10 stars 11 forks source link

Fetching fragments is slow(er) because prefix extraction #1410

Closed rorlic closed 2 days ago

rorlic commented 2 weeks ago

Using pyroscope I see that about 15% of the time is used for determining and extracting prefixes using regex on predicates and object URIs while prefixes are only applicable when returning Turtle format.

Even more, this results in ugly and strange prefixes, while it suffices to use well-known prefixes. However, it would be useful to also add a few additional prefixes as most objects in the LDES are prefixed with the LDES server URL and optionally allow to configure a set of prefixes (system wide).

Suggestion, for Turtle format do not determine/extract prefixes but simply always add:

  1. a set of well-known prefixes (rdfs:, dct:, xml:, etc.)
  2. a set of LDES specific prefixes, e.g. {ldes-name}:, {view-name}:, etc.
  3. a set of (system-wide) configured prefixes