TTL file format - I have no idea what this is

前端 未结 2 1790
终归单人心
终归单人心 2021-01-13 16:35

I have a file which has a structure, but I don\'t know what format it is, nor how to parse it. The file extension is ttl, but I have never encountered this before.

S

2条回答
  •  太阳男子
    2021-01-13 16:53

    That looks like turtle - a data description language for the semantic web.

    The :has label and :label are specified for two different semantic libraries defined to share data (esco and skosxl there should not be much problem finding these libraries with a search engine, assuming the data is in the semantic web) . :literal form could be thought of as the value in an XML tag.

    They represent ontologies in a data structure:

    Subject : 10 Predicate : Name Object : John

    As for python, read the data as a file, use the subject as the keys of a dictionary, put the values in a database, its unclear what you want to do with the data.

    Semantic data is open, incomplete and could have an unusual, complex structure. The example above is very simple the primer linked above may help.

提交回复
热议问题