Skip to content

Auto-detecting the input format #35

@tpluscode

Description

@tpluscode

Initially, there is not serialisation selected and has to be selected manually. I would like to add some way to auto-detect the input type

  1. If it parses as plain JSON => JSON-LD
  2. If it parses as XML => RDF/XML
  3. Otherwise => TriG

This should be enough, since TriG will handle n-triples, turtle, and Trig. It leaves n-quads uncovered unless we could come up with a simple way to detect. Some regex? Ideas, @ktk?

Originally posted by @tpluscode in #33 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions