Skip to content

Commit

Permalink
board_features: Follow deprecation warnings
Browse files Browse the repository at this point in the history
This makes the code work both for rdflib 6.1 and 7.0.
  • Loading branch information
chrysn committed Feb 21, 2024
1 parent e0e8a80 commit 21274ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/rdf/board_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ def colspan(cells: list[Markup]) -> list[Markup]:
return result

g = rdflib.Graph()
g.load("features.ttl", format="turtle")
g.load("info.ttl", format="turtle")
g.load("terms.ttl", format="turtle")
g.parse("features.ttl", format="turtle")
g.parse("info.ttl", format="turtle")
g.parse("terms.ttl", format="turtle")

boards = g.query("""
SELECT ?cpuname ?cpu ?cpudoc ?boardname ?board ?boarddoc ?ram ?rom ?wordsizelabel ?architecturelabel ?cpufeaturelabel ?cpufeaturecomment WHERE {
Expand Down

0 comments on commit 21274ec

Please sign in to comment.