Rename class WGS84 to WGS to match prefix name · RDFLib/rdflib@86d1773 (original) (raw)

2 files changed

lines changed

Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
2 2 from rdflib.term import URIRef
3 3
4 4
5 -class WGS84(DefinedNamespace):
5 +class WGS(DefinedNamespace):
6 6 """
7 7 Basic Geo (WGS84 lat/long) Vocabulary
8 8
Original file line number Diff line number Diff line change
@@ -374,7 +374,7 @@ def __init__(self, graph: "Graph"):
374 374 self.bind("time", TIME)
375 375 self.bind("vann", VANN)
376 376 self.bind("void", VOID)
377 -self.bind("wgs", WGS84)
377 +self.bind("wgs", WGS)
378 378 self.bind("xsd", XSD)
379 379
380 380 # Namespace bindings.
@@ -779,5 +779,5 @@ def get_longest_namespace(trie: Dict[str, Any], value: str) -> Optional[str]:
779 779 from rdflib.namespace._TIME import TIME
780 780 from rdflib.namespace._VANN import VANN
781 781 from rdflib.namespace._VOID import VOID
782 -from rdflib.namespace._WGS84 import WGS84
782 +from rdflib.namespace._WGS import WGS
783 783 from rdflib.namespace._XSD import XSD