此软件包提供对NFDI4Culture基础设施的Python接口。
项目描述
Culture Python软件包
最新schema.org : https://schema.org/version/latest/schemaorg-current-https.jsonld
NFDI4Culture
这是为管理NFDI4Culture基础设施而开发的Python工具的占位符。
示例
from nfdi4culture import cto
from lidolator import from_file
item = cto.Item()
item.datafeed = "https://nfdi4culture.de/id/E5320"
# Or should we have cto.DataFeed("https://nfdi4culture.de/id/E5320") and the rest happens from there?
# either of the above will set things like .publisher on the Item too.
# and create the relevant schema.DataFeedItem and schema.DataFeed triples?
item.sourcefile = "http://foo.com/bar/baz.oai-pmh?id=123456"
# the update method expects a dict with key-value mappings
# the cto.Item objet knows how to map a key and value to the relevant fields.
# How do we specify this field mapping?
# And do we split it into a NamedNode/Literal difference?
item.update(from_file(filepath))
item.ntriples()
# or
item.turtle()
待办事项
- JS正在处理爬虫
开放讨论点
我们应该使用RDFlib吗?虽然它是一个非常“内置电池”的软件包,但对于大型数据集(我们越来越希望创建),它只是太慢了。
项目详情
下载文件
下载适用于您平台的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。
源分发
此版本没有提供源分发文件。请参阅生成分发存档的教程。
构建分发
nfdi4culture-0.3-py3-none-any.whl (263.2 kB 查看哈希值)