【文件属性】:
文件名称:wikidata-parser:解析Wikidata转储
文件大小:17KB
文件格式:ZIP
更新时间:2021-05-26 14:17:27
Scala
维基数据解析器
解析器
可以使用DumpElement从wikidata转储中解析一行(Wikidata项目及其声明)
转储中的解析行
例子:
import org . idio . wikidata . dump . element . _
val element = DumpElement .parseElement(dumpLine)
element match {
case e : Item = > println( " It is a topic " )
case e : Property => println( " It is a relationship type " )
}
玩主题
import org . idio . wikidata . dump . element . _
val topic = DumpElement .parseElement(d
【文件预览】:
wikidata-parser-development
----project()
--------plugins.sbt(80B)
----src()
--------test()
--------main()
----build.sbt(329B)
----README.md(2KB)
----.gitignore(67B)