rdfproc永远解析了8.33 MB的文件?

时间:2019-05-29 07:54:01

标签: rdf jena redland

我正在尝试将所有ttl文件合并到一个数据转储中,但是当我尝试这样做时

rdfproc test_big parse vm_base.ttl turtle

这是永远的,还在等待...,让我怀疑它已经卡在某个地方。

有没有更好的选择可以更快地做到这一点? 除了我在Protégé中手动打开所有文件(这是我一直在做的,并发现它很费时)。

文件,如果需要测试: https://github.com/miranda-zhang/cloud-computing-schema/blob/master/example/sparql-generate/result/azure/v1.0.1/2019-03-07/vm_base.ttl


修改 我用riot合并了两个文件进行了测试,但是为什么给出重复的@prefix声明呢?

@prefix schema:  <https://schema.org/> .
@prefix xsd:  <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs:  <http://www.w3.org/2000/01/rdf-schema#> .
@prefix cocoon:  <https://w3id.org/cocoon/v1.0.1#> .

<https://w3id.org/cocoon/data/v1.0.1/Device/150.203.213.249/lat=-35.271475/long=149.121434>
        <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>  cocoon:Device ;
        rdfs:comment  "The computer used to conduct the tests, belongs to Australian National University College of Engineering & Computer Science."@en ;
        rdfs:label    "CECS-030929"@en .

_:b0    <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>  schema:Place .

_:b1    <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>  schema:GeoCoordinates ;
        schema:address    "Hanna Neumann Building #145, Science Road, Canberra ACT 2601" ;
        schema:latitude   "-35.271475" ;
        schema:longitude  "149.121434" .

_:b0    schema:geo  _:b1 .

<https://w3id.org/cocoon/data/v1.0.1/Device/150.203.213.249/lat=-35.271475/long=149.121434>
        cocoon:inPhisicalLocation  _:b0 ;
        cocoon:ipv4                "150.203.213.249" .
@prefix schema:  <https://schema.org/> .
@prefix xsd:  <http://www.w3.org/2001/XMLSchema#> .
@prefix cocoon:  <https://w3id.org/cocoon/v1.0.1#> .

<1-KB>  <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>  schema:TypeAndQuantityNode ;
        schema:amountOfThisGood  "1"^^xsd:interger ;
        schema:unitText          "KB" ;
        schema:unitCode          "2P" .

我对文件进行了测试

  1. https://github.com/miranda-zhang/cloud-computing-schema/blob/master/example/sparql-generate/result/device.ttl
  2. https://github.com/miranda-zhang/cloud-computing-schema/blob/master/example/sparql-generate/result/qos_property.ttl

0 个答案:

没有答案