Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于导入数据到db的问题 #126

Open
runzhi214 opened this issue Apr 20, 2023 · 2 comments
Open

关于导入数据到db的问题 #126

runzhi214 opened this issue Apr 20, 2023 · 2 comments

Comments

@runzhi214
Copy link

runzhi214 commented Apr 20, 2023

这个issue和gitee的https://gitee.com/PKUMOD/gStore/issues/I6XBE5 一样。

根据usage.md的描述:
​ RDF data should be provided in n-triple format (XML is not currently supported), and queries must be provided in SPARQL1.1 syntax.

是必须要用.NT格式吗?
RDF (Resource Description Framework) 通常以四种格式存储: N-Triples (.nt)、Turtle (.ttl)、JSON-LD (.json)或RDF/XML (. RDF)。

也就是说,我用.RDF格式是无法识别对吗?

数据源:OpenKG的基于cnSchema的浙江历史人物知识图谱.rdf
http://openkg.cn/dataset/zj-historicalpersonage
bin/gbuild -db zhejiang -f data/ZJHistory.rdf

image

@zxlchina
Copy link

zxlchina commented Apr 20, 2023 via email

@WenJieLiHnu
Copy link
Collaborator

您好,感谢您的反馈,目前我们主要是支持主谓宾三元组形式的数据,如下所示,至于文件是什么后缀我们不处理,另外,您提到的这几个格式,目前我们正在适配,即将完成敬请期待。

<刘亦菲> <姓名> "刘亦菲" .

<刘亦菲> <姓名> "Crystal Liu" .

<刘亦菲> <性别> "女" .

<刘亦菲> <星座> "处女座" .

<刘亦菲> <职业> "演员" .

<林志颖> <姓名> "林志颖" .

<林志颖> <性别> "男" .

<林志颖> <职业> "演员" .

<林志颖> <职业> "导演" .

<胡军> <姓名> "胡军" .

<胡军> <性别> "男" .

<胡军> <星座> "双鱼座" .

<胡军> <职业> "演员" .

<胡军> <职业> "配音" .

<胡军> <职业> "制片" .

<胡军> <职业> "导演" .

<天龙八部> <主演> <林志颖> .

<天龙八部> <主演> <刘亦菲> .

<天龙八部> <主演> <胡军> .

<天龙八部> <类型> <武侠片> .

<天龙八部> <类型> <古装片> .

<天龙八部> <类型> <爱情片> .

<天龙八部> <豆瓣评分> "8.3"^^http://www.w3.org/2001/XMLSchema#float .

<天龙八部> <上映时间> "2003-12-11T00:00:00"^^http://www.w3.org/2001/XMLSchema#dateTime .

<恋爱大赢家> <主演> <林志颖> .

<恋爱大赢家> <主演> <刘亦菲> .

<恋爱大赢家> <类型> <爱情片> .

<恋爱大赢家> <类型> <剧情片> .

<恋爱大赢家> <豆瓣评分> "6.1"^^http://www.w3.org/2001/XMLSchema#float .

<恋爱大赢家> <上映时间> "2004-11-30T00:00:00"^^http://www.w3.org/2001/XMLSchema#dateTime .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants