RDFLib / rdflib

RDFLib is a Python library for working with RDF, a simple yet powerful language for representing information.
https://rdflib.readthedocs.org
BSD 3-Clause "New" or "Revised" License
2.17k stars 556 forks source link

Re-implement N3 & SPARQL Lexers for documentation #993

Closed nicholascar closed 2 years ago

nicholascar commented 4 years ago

Previously, the readthedocs rdflib documentation used two Pygments lexers that for N3 & SPARQL that are now no longer available:

https://github.com/gjhiggins/sparql_pygments_lexer.git#egg=SPARQL_Pygments_Lexer https://github.com/gjhiggins/n3_pygments_lexer.git#egg=Notation3_Pygments_Lexer

We need to replace these with available lexers. One, SPARQL, at least is already available, as is Turtle:

https://pygments.org/docs/lexers/#lexers-for-semantic-web-and-rdf-query-languages-and-markup

ghost commented 2 years ago

Previously, the readthedocs rdflib documentation used two Pygments lexers that for N3 & SPARQL that are now no longer available:

Mea culpa.

sparql_pygments_lexer.git n3_pygments_lexer.git

We need to replace these with available lexers. One, SPARQL, at least is already available, as is Turtle:

https://pygments.org/docs/lexers/#lexers-for-semantic-web-and-rdf-query-languages-and-markup

More sensible to use the Pygments supported-and-maintained versions.

I cloned the n3 lexer from https://github.com/gniezen/n3pygments