forked from ckan/ckanext-dcat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update tests for changes in date parsing in rdflib
Rdflib 7.1 introduced changes in [date parsing][1] that made some base profile tests fail. Basically the previous rdflib versions incomplete dates like <time:inXSDDateTimeStamp rdf:datatype="http://www.w3.org/2001/XMLSchema#date"> 1904 </time:inXSDDateTimeStamp> were expanded to `1904-01-01`. Of course this is not a valid date and should be expressed using `gYear`: <time:inXSDDateTimeStamp rdf:datatype="http://www.w3.org/2001/XMLSchema#gYear"> 1904 </time:inXSDDateTimeStamp> and we should be expecting `1904`. This should play nice with the time properties we are generating in CKAN as they already handle automatically `gYear`, `gYearMonth`, `date` and `dateTime`. Sites importing external DCAT representations that use the wrong encoding might need to check their parsers. [1] RDFLib/rdflib#2929
- Loading branch information
Showing
3 changed files
with
15 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
rdflib>=6.1.1,<7.1.0 | ||
rdflib>=6.1.1,<7.2.0 | ||
geomet>=0.2.0 | ||
ckantoolkit>=0.0.7 | ||
future>=0.18.2 |