You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Graph().parse("some-file.ttl", format="turtle") is a common way to load RDF into an rdflib Graph. We have methods such as rdflib.util.guess_format() to guess format from the file extensions so what we need now is for guess_format() to be triggered automatically if format is not given so parse() can be used like this:
Graph().parse("some-file.ttl")
The text was updated successfully, but these errors were encountered:
nicholascar
changed the title
Auto-detect RDF type from tile extension
Auto-detect RDF type from file extension
Mar 20, 2020
Graph().parse("some-file.ttl", format="turtle")
is a common way to load RDF into an rdflib Graph. We have methods such asrdflib.util.guess_format()
to guessformat
from the file extensions so what we need now is forguess_format()
to be triggered automatically ifformat
is not given soparse()
can be used like this:The text was updated successfully, but these errors were encountered: