最近在研究本体论和知识图谱,发现有些现成的本体论library,在github上。我想要把这些library用在我的项目里,目前想用protege导入.tll文件,但我发现导不进去。 想问下,哪些软件能导入.tll 文件呢?
https://github.com/dbpedia/dbpedia
https://github.com/SpyrosKou/StandardOntology
https://github.com/i40-Tools/I40KG
virtuoso数据库可以,下载链接:https://sourceforge.net/projects/virtuoso/files/virtuoso/
望采纳!
protege估计有些是不支持的,可以试试用virtuoso
可以使用python:
import re
from collections import namedtuple
from itertools import takewhile
Entry = namedtuple('Entry', 'id name address phone')
def get_entries(path):
with open(path) as file:
# an entry starts with `#@` line and ends with a blank line
for line in file:
if line.startswith('#@'):
buf = [line]
buf.extend(takewhile(str.strip, file)) # read until blank line
yield Entry(*re.findall(r'<([^>]+)>', ''.join(buf)))
print("\n".join(map(str, get_entries('example.ttl'))))
借鉴网站:https://stackoverflow.com/questions/15171802/how-to-parse-ttl-files-with-rdflib
我直接推荐FileViewPro,所有格式的文件都能打开的,望采纳啦谢谢
如果只是打开,用记事本也可以
https://www.likecs.com/show-204547615.html
neo4j可导入ttl文件(turtle)
https://www.icode9.com/content-4-1350901.html
可以使用c语言来读取一下串口数据:?%ra=linkhttps://blog.csdn.net/geerniya/article/details/100906950
能导入.ttl文件的有好几个,关键你是想实现什么效果