Skip to content

Commit 04d97d2

Browse files
committed
accept text/turtle
1 parent ec9ba10 commit 04d97d2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/src/util.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ pub fn read_url(file: &str) -> Result<OxigraphGraph> {
7373
let content_type = content_type.and_then(|ct| ct.to_str().ok());
7474
let content_type = content_type.and_then(|ext| match ext {
7575
"application/x-turtle" => Some(RdfFormat::Turtle),
76+
"text/turtle" => Some(RdfFormat::Turtle),
7677
"application/rdf+xml" => Some(RdfFormat::RdfXml),
7778
"text/rdf+n3" => Some(RdfFormat::NTriples),
7879
_ => {

0 commit comments

Comments
 (0)