semanticarts/ontology-toolkit

Apparent bug with triples using dateTime literals

Closed this issue · 0 comments

I have an example using a dateTime triple that is tripping up onto_tool graphic.

@prefix gist: <https://ontologies.semanticarts.com/gist/> .
@prefix myeo: <https://ontologies.mycompany.com/myeo/core/> .
@prefix myeod: <https://data.mycompany.com/myeo/core/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

myeod:_TimeInstant_2021-04-08T00:00:00
	a gist:TimeInstant ;
	gist:universalDateTime "2021-04-08T00:00:00"^^xsd:dateTime ;
	.

gist:universalDateTime a owl:DatatypeProperty .

If I run the following command, I get an error. If I remove the last line, I get a different error.

  • onto_tool graphic onto_tool_bug_datetime.ttl --data --predicate-threshold 1 -o onto_tool_bug_datetime
  • With last line, I get the error: "ValueError: max() arg is an empty sequence"
  • Without last line, I get the error: "AttributeError: 'NoneType' object has no attribute 'split'"

Rename the .txt file below to have a .ttl extension. It runs through the serializer and loads just fine into Protege and AllegroGraph but is tripping up onto_tool.

The following .txt file gives full details of the error message traces.