Closed JakubKana closed 9 years ago
Can you send me the triple that has a problem in turtle?
From the definition PC: profile should be a URI but a literal is found instead
If I use rdf:resource="URL" I get this weird triple from RDF/XML (I am using Apache Jena RIOT command line tool)
http://linked.opendata.cz/resource/ted.europa.eu/business-entity/091c826d-16df-4649-81de-c41853ad8502 http://purl.org/procurement/public-contracts#profile file:///D:/Dropbox/Bakalářská%20práce/Data/Extracts/Extracts/F04/Extract/www.e-licitatie.ro .
when in RDF/XML is this
pc:profile rdf:resource="www.e-licitatie.ro"/
I don't know why is there whole how to say it "PATH" and after it my URL. BUT this error doesn't occurs in this case eg. that row is green. I am a little bit confused with this.
technically "www.e-licitatie.ro"^^http://www.w3.org/2001/XMLSchema#anyURI
is a literal
it should be the following to be correct
<http://linked.opendata.cz/resource/ted.europa.eu/business-entity/c64aa269-bc65-4159-b82e-8691a5535f25> <http://purl.org/procurement/public-contracts#profile> <http://www.e-licitatie.ro> .
however this is a common case and I would mark it as a soft error. The correct RDF/XML should be like this:
<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="http://linked.opendata.cz/resource/ted.europa.eu/business-entity/c64aa269-bc65-4159-b82e-8691a5535f25">
<ns0:profile xmlns:ns0="http://purl.org/procurement/public-contracts#" rdf:resource="http://www.e-liciltatie.ro"/>
</rdf:Description>
</rdf:RDF>
the reason you get file:///D:/Dropbox/Bakalářská%20práce/Data/Extracts/Extracts/F04/Extract/
as a prefix is because you skip the http://
before the URI and it is marked as relative to the file's path
Is it correct to assume that in case of rdfs:range xsd:anyURI
RDFUnit does not expect datatyped literal but an individual instead? That is, is the following correct?
<http://linked.opendata.cz/resource/ted.europa.eu/business-entity/c64aa269-bc65-4159-b82e-8691a5535f25> <http://purl.org/procurement/public-contracts#profile> <http://www.e-licitatie.ro> .
And is the following incorrect?
<http://linked.opendata.cz/resource/ted.europa.eu/business-entity/c64aa269-bc65-4159-b82e-8691a5535f25> <http://purl.org/procurement/public-contracts#profile> "http://www.e-licitatie.ro"^^<http://www.w3.org/2001/XMLSchema#anyURI> .
In the case of pc:profile
, the second interpretation was intended to be correct. We chose rdfs:range
of literal values because links to profiles of contracting authorities were frequently malformed or relative URIs, which were difficult or nigh impossible to parse and convert to well-formed absolute URIs.
Is it correct to assume that in case of rdfs:range xsd:anyURI RDFUnit does not expect datatyped literal but an individual instead? That is, is the following correct?
http://linked.opendata.cz/resource/ted.europa.eu/business-entity/c64aa269-bc65-4159-b82e-8691a5535f25 http://purl.org/procurement/public-contracts#profile http://www.e-licitatie.ro .
And is the following incorrect?
http://linked.opendata.cz/resource/ted.europa.eu/business-entity/c64aa269-bc65-4159-b82e-8691a5535f25 http://purl.org/procurement/public-contracts#profile "http://www.e-licitatie.ro"^^http://www.w3.org/2001/XMLSchema#anyURI .
strictly yes, see https://lists.w3.org/Archives/Public/semantic-web/2010Jul/0396.html
In the case of pc:profile, the second interpretation was intended to be correct. We chose rdfs:range of literal values because links to profiles of contracting authorities were frequently malformed or relative URIs, which were difficult or nigh impossible to parse and convert to well-formed absolute URIs.
You could change the definition of pc:profile with xsd:anyURI as range (instead of owl:ObjectProperty) if you only use literals and RDFUnit will not complain
— Reply to this email directly or view it on GitHub https://github.com/AKSW/RDFUnit/issues/32#issuecomment-78003710.
Kontokostas Dimitris
Sorry, I see the actual problem now, you state pc:profile
to be an owl:InverseFunctionalProperty
which is a subclass of owl:ObjectProperty
[1] and an owl:DatatypeProperty
which is a contradiction.
Even if you change the value to a URI, RDFUnit will still raise errors due to the existence of both rules.
So you should adapt the pc:profile
definition.
[1] http://www.w3.org/TR/owl-ref/#InverseFunctionalProperty-def
Thanks for catching this bug. I have removed the owl:InverseFunctionalProperty
membership for pc:profile
in the Public Contracts Ontology repository.
However, you quote https://lists.w3.org/Archives/Public/semantic-web/2010Jul/0396.html as support for the claim that the following triple is incorrect, while I think it supports the contrary position.
<http://linked.opendata.cz/resource/ted.europa.eu/business-entity/c64aa269-bc65-4159-b82e-8691a5535f25> <http://purl.org/procurement/public-contracts#profile> "http://www.e-licitatie.ro"^^<http://www.w3.org/2001/XMLSchema#anyURI> .
In other words, if pc:profile
is defined as owl:DatatypeProperty
with rdfs:range xsd:anyURI
, then RDFUnit should evaluate this triple as valid.
This was before I notice the property definition contradiction and thought
pc:profile
as an object property only.
If you make that change, RDFUnit will not complain
Great. Then I think @JakubKanaVSE can close this issue, as this wasn't an RDFUnit bug, but a bug of Public Contracts Ontology.
OK, I am closing issue. Thank you for your help.
I've tried with updated ontology https://code.google.com/p/public-contracts-ontology/source/browse/public-contracts.ttl
retest this triple
http://linked.opendata.cz/resource/ted.europa.eu/business-entity/029cbd15-c593-47c3-85cd-61cc6b7956f7 http://purl.org/procurement/public-contracts#profile "www.e-licitatie.ro"^^http://www.w3.org/2001/XMLSchema#anyURI .
and I still get same error as in picture on top of this issue posted.
Can you investigate if there is something more happening wrong in RDFUnit I have no idea. I deleted old tests regenerate them with direct input of this ontology in file.
Thank you.
How did you perform the evaluation? Command line or Web interface?
I am using Command line testing on virtualized linux system.
Hi Jakub,
I think pc:profile is still evaluated as an object property since it is defined as a subPropertyOf foaf:homepage, which is defined as an InverseFunctionalProperty, i.e. an object property. [1] If you remove the triple: pc:profile rdfs:subPropertyOf foaf:homepage . from your ontology the error will be gone, probably .... ;-)
Roland
[1] http://xmlns.com/foaf/spec/#term_homepage
On 13-03-15 17:24, Jakub Káňa wrote:
Reopened #32 https://github.com/AKSW/RDFUnit/issues/32.
— Reply to this email directly or view it on GitHub https://github.com/AKSW/RDFUnit/issues/32#event-252159352.
can you add -C
or --no-test-cache
as validation arguments and tell me
if it works?
I cache the generated tests for each schema and probably uses the previous
vocabulary version
@roland-c: If the data is tested against Public Contracts Ontology only, then I presume RDFUnit should draw no constraints from other vocabularies, such as FOAF.
@JakubKanaVSE: Can you test if RDFUnit stops reporting this as an issue if you remove the pc:profile rdfs:subPropertyOf foaf:homepage .
triple in your local copy of Public Contracts Ontology?
@jindrichmynarz when I deleted rdfs:subPropertyOf foaf:homepage . error still occurs even without this triple.
@jimkont tried with these arguments and I still got the error its weird only way it works is as I wrote before when triple look like this if it helps.
<http://linked.opendata.cz/resource/ted.europa.eu/business-entity/029cbd15-c593-47c3-85cd-61cc6b7956f7> <http://purl.org/procurement/public-contracts#profile> < www.e-licitatie.ro> .
Can you send me the exact arguments you use to run the evaluation?
bin/rdfunit -d ../data/TED_export/F04/dump04_one.nt -s ../data/public-contracts.ttl -o html
Since you run the evaluation with -s ../data/public-contracts.ttl
, foaf
is not loaded and pc:profile rdfs:subPropertyOf foaf:homepage .
should not do anything (in RDFUnit).
However, this triple infers that pc:profile a owl:inverseFunctionalProperty
and should be removed as well.
Just to make sure the caches are cleared correctly before I start digging in the code, is this how you run it with the -C
option?
bin/rdfunit -d ../data/TED_export/F04/dump04_one.nt -s ../data/public-contracts.ttl -o html -C
I'm confused: first you say that pc:profile rdfs:subPropertyOf foaf:homepage .
should not infer anything if FOAF is not loaded, but then you say that pc:profile a owl:inverseFunctionalProperty .
is inferred from this triple. Why is that?
In this setting only the pc vocab is used for validation (with -s) and RDFUnit does not download foaf. So with these arguments foaf is not used from RDFUnit.
If foaf was specified or -s was skipped and selected automatically then we would have the same error.
Since foaf:homepage is also an inverse functional property a reasoner would still infer that pc:profile is an object property.
Sure, I get that when RDFUnit takes FOAF into account, then pc:profile a owl:ObjectProperty
is inferred. However, I got the impression that @JakubKanaVSE is skipping FOAF, so it shouldn't be inferred.
Anyway, as we've seen pc:profile rdfs:subPropertyOf foaf:homepage
is not a good idea, so I removed this assertion from the Public Contracts Ontology. @JakubKanaVSE, can you please check:
pc:profile rdfs:subPropertyOf foaf:homepage
?@jimkont @jindrichmynarz I've tried it already before and now again it still doesn't work properly 1) tried -C argument and --no-test-cache argument still get the error 2) error is still rasied even without pc:profile rdfs:subPropertyOf foaf:homepage but I ve already tried that 3) I also tried to remove any foaf:page elements error is still there
Maybe I got a hint on the bug, can you please delete all contents of the
directory data/results/Schema/*
and try again?
If it still doesn't work please copy the contents of the RDF you test to try it locally
@jimkont Well what you suggesting was the first thing I've done before I got tip to write here an issue I've tried it one more time now and only thing I get now is some "new" errors
james@james-virtual-machine ~/RDFUnit $ bin/rdfunit -d ../data/TED_export/F04/dump04_one.nt -s ../data/public-contracts.ttl -o html -C
java.lang.RuntimeException: HttpException: org.apache.http.conn.HttpHostConnectException: Connection to http://helium.okfnlabs.org:3030 refused: Unexpected error making the query: org.apache.http.conn.HttpHostConnectException: Connection to http://helium.okfnlabs.org:3030 refused
at org.aksw.jena_sparql_api.cache.core.QueryExecutionCacheEx.doCacheResultSet(QueryExecutionCacheEx.java:92)
at org.aksw.jena_sparql_api.cache.core.QueryExecutionCacheEx.execSelect(QueryExecutionCacheEx.java:204)
at org.aksw.jena_sparql_api.pagination.core.ResultSetPaginated.prefetch(ResultSetPaginated.java:97)
at org.aksw.jena_sparql_api.pagination.core.ResultSetPaginated.prefetch(ResultSetPaginated.java:49)
at org.aksw.commons.collections.PrefetchIterator.preparePrefetch(PrefetchIterator.java:35)
at org.aksw.commons.collections.PrefetchIterator.getCurrent(PrefetchIterator.java:51)
at org.aksw.commons.collections.PrefetchIterator.hasNext(PrefetchIterator.java:58)
at org.aksw.jena_sparql_api.pagination.core.QueryExecutionIterated.execSelect(QueryExecutionIterated.java:92)
at org.aksw.rdfunit.Utils.RDFUnitUtils.fillSchemaServiceFromLOV(RDFUnitUtils.java:138)
at org.aksw.rdfunit.validate.cli.ValidateCLI.main(ValidateCLI.java:61)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:293)
at java.lang.Thread.run(Thread.java:745)
Caused by: HttpException: org.apache.http.conn.HttpHostConnectException: Connection to http://helium.okfnlabs.org:3030 refused: Unexpected error making the query: org.apache.http.conn.HttpHostConnectException: Connection to http://helium.okfnlabs.org:3030 refused
at com.hp.hpl.jena.sparql.engine.http.HttpQuery.rewrap(HttpQuery.java:417)
at com.hp.hpl.jena.sparql.engine.http.HttpQuery.execGet(HttpQuery.java:358)
at com.hp.hpl.jena.sparql.engine.http.HttpQuery.exec(HttpQuery.java:295)
at com.hp.hpl.jena.sparql.engine.http.QueryEngineHTTP.execSelect(QueryEngineHTTP.java:346)
at org.aksw.jena_sparql_api.core.QueryExecutionDecoratorBase.execSelect(QueryExecutionDecoratorBase.java:81)
at org.aksw.jena_sparql_api.delay.core.QueryExecutionDelay.execSelect(QueryExecutionDelay.java:33)
at org.aksw.jena_sparql_api.cache.core.QueryExecutionCacheEx.doCacheResultSet(QueryExecutionCacheEx.java:76)
... 15 more
Caused by: org.apache.http.conn.HttpHostConnectException: Connection to http://helium.okfnlabs.org:3030 refused
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:190)
at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294)
at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:643)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:479)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
at org.apache.http.impl.client.DecompressingHttpClient.execute(DecompressingHttpClient.java:137)
at org.apache.http.impl.client.DecompressingHttpClient.execute(DecompressingHttpClient.java:118)
at org.apache.jena.riot.web.HttpOp.exec(HttpOp.java:1109)
at org.apache.jena.riot.web.HttpOp.execHttpGet(HttpOp.java:384)
at org.apache.jena.riot.web.HttpOp.execHttpGet(HttpOp.java:446)
at com.hp.hpl.jena.sparql.engine.http.HttpQuery.execGet(HttpQuery.java:346)
... 20 more
Caused by: java.net.ConnectException: SpojenĂ bylo pĹ™Ăliš dlouho neaktivnĂ
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:127)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)
... 30 more
[INFO RDFUnitUtils] Loaded 0 schema declarations from LOV SPARQL Endpoint
[INFO RDFUnitUtils] Loaded 13 schema declarations from: java.io.FileInputStream@11613f3e
[INFO TestGeneratorExecutor] Generating tests for: ../data/public-contracts.ttl
[INFO TestGeneratorExecutor] ../data/public-contracts.ttl contains 160 automatically created tests
[INFO SimpleTestExecutorMonitor] Testing ../data/TED_export/F04/dump04_one.nt
[INFO SimpleTestExecutorMonitor] Test 1/160 returned Errors: 1 / Prevalence: 1. Test: rutt:.._data_public-contracts.ttl-OBJFUNC-f42f0359150c10560f3adec289603fcf9640fcd1c181288ed1bae04f6521026e
[INFO SimpleTestExecutorMonitor] Test 2/160 returned Errors: 0 / Prevalence: 1. Test: rutt:.._data_public-contracts.ttl-OBJFUNC-476e57d611605c8028c5e4a20a8e16a1d12edf8fc474c3f88e0f2d0a9ad22c95
[INFO SimpleTestExecutorMonitor] Test 3/160 returned Errors: 0 / Prevalence: 0. Test: rutt:.._data_public-contracts.ttl-OBJFUNC-ef080b1155e72389dad3778da3fa696ad3674c52e14400f5f934085338eae8d2
[INFO SimpleTestExecutorMonitor] Test 4/160 returned Errors: 0 / Prevalence: 0. Test: rutt:.._data_public-contracts.ttl-OBJFUNC-c9d681794efe25b0191dd3823d53870e04d2aa9af0b3a1f8d451d58c41d022a1
[INFO SimpleTestExecutorMonitor] Test 5/160 returned Errors: 0 / Prevalence: 0. Test: rutt:.._data_public-contracts.ttl-OBJFUNC-3f4af77e3d3d0be40d2fa86308a17c5e001126fa517db668d171762abdabd10a
here is data I am testing
<http://linked.opendata.cz/resource/ted.europa.eu/contract-notice/001152-2015> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://purl.org/procurement/public-contracts#PriorInformationNotice> .
<http://linked.opendata.cz/resource/ted.europa.eu/contract-notice/001152-2015> <http://purl.org/procurement/public-contracts#publicationDate> "2015-01-02"^^<http://www.w3.org/2001/XMLSchema#date> .
<http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://purl.org/procurement/public-contracts#Contract> .
<http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015> <http://purl.org/procurement/public-contracts#publicNotice> <http://linked.opendata.cz/resource/ted.europa.eu/contract-notice/001152-2015> .
<http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015> <http://purl.org/procurement/public-contracts#kind> <http://purl.org/procurement/public-contracts-kinds#Supplies> .
<http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015> <http://purl.org/procurement/public-contracts#CompetitiveDialogue> "false"^^<http://www.w3.org/2001/XMLSchema#boolean> .
<http://linked.opendata.cz/resource/ted.europa.eu/business-entity/71702ae9-8126-4319-a19f-230570a1063c> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://purl.org/goodrelations/v1#BusinessEntity> .
<http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015> <http://purl.org/procurement/public-contracts#contractingAuthority> <http://linked.opendata.cz/resource/ted.europa.eu/business-entity/71702ae9-8126-4319-a19f-230570a1063c> .
<http://linked.opendata.cz/resource/ted.europa.eu/business-entity/71702ae9-8126-4319-a19f-230570a1063c> <http://purl.org/goodrelations/v1#legalName> "Compania de Apa Oltenia SA" .
<http://linked.opendata.cz/resource/ted.europa.eu/postal-address/67dc081b-bf5e-4111-b6d3-f71f0166da3a> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/PostalAddress> .
<http://linked.opendata.cz/resource/ted.europa.eu/business-entity/71702ae9-8126-4319-a19f-230570a1063c> <http://schema.org/address> <http://linked.opendata.cz/resource/ted.europa.eu/postal-address/67dc081b-bf5e-4111-b6d3-f71f0166da3a> .
<http://linked.opendata.cz/resource/ted.europa.eu/postal-address/67dc081b-bf5e-4111-b6d3-f71f0166da3a> <http://schema.org/streetAddress> "Str. Brestei nr. 133" .
<http://linked.opendata.cz/resource/ted.europa.eu/postal-address/67dc081b-bf5e-4111-b6d3-f71f0166da3a> <http://schema.org/addressLocality> "Craiova" .
<http://linked.opendata.cz/resource/ted.europa.eu/postal-address/67dc081b-bf5e-4111-b6d3-f71f0166da3a> <http://schema.org/postalCode> "200177" .
<http://linked.opendata.cz/resource/ted.europa.eu/postal-address/67dc081b-bf5e-4111-b6d3-f71f0166da3a> <http://schema.org/addressCountry> "RO" .
<http://linked.opendata.cz/resource/ted.europa.eu/business-entity/71702ae9-8126-4319-a19f-230570a1063c> <http://purl.org/procurement/public-contracts#profile> "www.e-licitatie.ro"^^<http://www.w3.org/2001/XMLSchema#anyURI> .
<http://linked.opendata.cz/resource/ted.europa.eu/business-entity/71702ae9-8126-4319-a19f-230570a1063c> <http://xmlns.com/foaf/0.1/page> "www.apaoltenia.ro"^^<http://www.w3.org/2001/XMLSchema#anyURI> .
<http://linked.opendata.cz/resource/ted.europa.eu/business-entity/71702ae9-8126-4319-a19f-230570a1063c> <http://purl.org/procurement/public-contracts#mainActivity> <http://purl.org/procurement/public-contracts-activities#Water> .
<http://linked.opendata.cz/resource/ted.europa.eu/contact-point/5a73ee7a-5625-41bb-b57b-247d78f2b740> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/ContactPoint> .
<http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015> <http://purl.org/procurement/public-contracts#contact> <http://linked.opendata.cz/resource/ted.europa.eu/contact-point/5a73ee7a-5625-41bb-b57b-247d78f2b740> .
<http://linked.opendata.cz/resource/ted.europa.eu/contact-point/5a73ee7a-5625-41bb-b57b-247d78f2b740> <http://schema.org/name> "Serviciul Achizitii Publice" .
<http://linked.opendata.cz/resource/ted.europa.eu/contact-point/5a73ee7a-5625-41bb-b57b-247d78f2b740> <http://schema.org/telephone> "+40 251422117" .
<http://linked.opendata.cz/resource/ted.europa.eu/contact-point/5a73ee7a-5625-41bb-b57b-247d78f2b740> <http://schema.org/email> "achizitii.apaoltenia@gmail.com" .
<http://linked.opendata.cz/resource/ted.europa.eu/contact-point/5a73ee7a-5625-41bb-b57b-247d78f2b740> <http://schema.org/email> "achizitii.apaoltenia@yahoo.com" .
<http://linked.opendata.cz/resource/ted.europa.eu/contact-point/5a73ee7a-5625-41bb-b57b-247d78f2b740> <http://schema.org/faxNumber> "+40 251422263" .
<http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015> <http://purl.org/dc/terms/title> "Autocuratitoare combinate intretinere canale."@RO .
<http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015> <http://purl.org/procurement/public-contracts#kind> <http://purl.org/procurement/public-contracts-kinds#Supplies> .
<http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015> <http://purl.org/dc/terms/description> "3 buc. autocuratitor combinat intretinere canale."@RO .
<http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015> <http://purl.org/procurement/public-contracts#mainObject> <http://linked.opendata.cz/resource/cpv-2008/concept/34114000> .
<http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015> <http://purl.org/procurement/public-contracts#duration> "P6M"^^<http://www.w3.org/2001/XMLSchema#duration> .
<http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015/estimated-price/1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/PriceSpecification> .
<http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015> <http://purl.org/procurement/public-contracts#estimatedPrice> <http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015/estimated-price/1> .
<http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015/estimated-price/1> <http://schema.org/price> "4153380"^^<http://www.w3.org/2001/XMLSchema#decimal> .
<http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015/estimated-price/1> <http://schema.org/priceCurrency> "RON" .
<http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015/estimated-price/1> <http://schema.org/valueAddedTaxIncluded> "false"^^<http://www.w3.org/2001/XMLSchema#boolean> .
<http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015/estimated-price/1> <http://schema.org/description> "Fonduri externe, Programul Operational Sectorial de Mediu."@RO .
<http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015> <http://purl.org/dc/terms/description> "Clauza suspensiva: Procedura de este initiata sub incidenta prezentei clauze suspensive, in sensul ca incheierea contractului de achizitie publica este conditionata de incheierea contractului de finantare cu autoritatea de management, semnarea contractului facandu-se cu respectarea dispozitiilor art. 94 din HG nr. 925/2006, cu modifi-carile si completarile ulterioare."@RO .
<http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015/identifier/1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/adms#Identifier> .
<http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015> <http://www.w3.org/ns/adms#identifier> <http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015/identifier/1> .
<http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015/identifier/1> <http://www.w3.org/2004/02/skos/core#notation> "CP03-2014" .
<http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015> <http://purl.org/dc/terms/description> "Procedura de achizitie se va face prin licitatie deschisa, online."@RO .
<http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015/agreed-price/1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/PriceSpecification> .
<http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015> <http://purl.org/procurement/public-contracts#agreedPrice> <http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015/agreed-price/1> .
<http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015/agreed-price/1> <http://schema.org/price> "4153380"^^<http://www.w3.org/2001/XMLSchema#decimal> .
<http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015/agreed-price/1> <http://schema.org/priceCurrency> "RON" .
<http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015/agreed-price/1> <http://schema.org/valueAddedTaxIncluded> "false"^^<http://www.w3.org/2001/XMLSchema#boolean> .
<http://linked.opendata.cz/resource/ted.europa.eu/contract-notice/001152-2015> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://contsem.unizar.es/def/sector-publico/pproc#ContractAwardNotice> .
<http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015> <http://purl.org/procurement/public-contracts#notice> <http://linked.opendata.cz/resource/ted.europa.eu/contract-notice/001152-2015> .
<http://linked.opendata.cz/resource/ted.europa.eu/contract-notice/001152-2015> <http://contsem.unizar.es/def/sector-publico/pproc#noticeSentDate> "2014-12-29"^^<http://www.w3.org/2001/XMLSchema#date> .
Hi Jakub,
The error is about the service lov.okfn.org that is down... [1] We need to wait for it to get back up again, or specify the schema's involved by hand ...
Best regards Roland
[1] https://twitter.com/metamatterNL/status/577452508638896128
On 16-03-15 19:31, Jakub Káňa wrote:
@jimkont https://github.com/jimkont Well what you suggesting was the first thing I've done before I got tip to write here an issue I've tried it one more time now and only thing I get now is some "new" errors
james@james-virtual-machine ~/RDFUnit $ bin/rdfunit -d ../data/TED_export/F04/dump04_one.nt -s ../data/public-contracts.ttl -o html -C java.lang.RuntimeException: HttpException: org.apache.http.conn.HttpHostConnectException: Connection to http://helium.okfnlabs.org:3030 refused: Unexpected error making the query: org.apache.http.conn.HttpHostConnectException: Connection to http://helium.okfnlabs.org:3030 refused at org.aksw.jena_sparql_api.cache.core.QueryExecutionCacheEx.doCacheResultSet(QueryExecutionCacheEx.java:92) at org.aksw.jena_sparql_api.cache.core.QueryExecutionCacheEx.execSelect(QueryExecutionCacheEx.java:204) at org.aksw.jena_sparql_api.pagination.core.ResultSetPaginated.prefetch(ResultSetPaginated.java:97) at org.aksw.jena_sparql_api.pagination.core.ResultSetPaginated.prefetch(ResultSetPaginated.java:49) at org.aksw.commons.collections.PrefetchIterator.preparePrefetch(PrefetchIterator.java:35) at org.aksw.commons.collections.PrefetchIterator.getCurrent(PrefetchIterator.java:51) at org.aksw.commons.collections.PrefetchIterator.hasNext(PrefetchIterator.java:58) at org.aksw.jena_sparql_api.pagination.core.QueryExecutionIterated.execSelect(QueryExecutionIterated.java:92) at org.aksw.rdfunit.Utils.RDFUnitUtils.fillSchemaServiceFromLOV(RDFUnitUtils.java:138) at org.aksw.rdfunit.validate.cli.ValidateCLI.main(ValidateCLI.java:61) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:293) at java.lang.Thread.run(Thread.java:745) Caused by: HttpException: org.apache.http.conn.HttpHostConnectException: Connection to http://helium.okfnlabs.org:3030 refused: Unexpected error making the query: org.apache.http.conn.HttpHostConnectException: Connection to http://helium.okfnlabs.org:3030 refused at com.hp.hpl.jena.sparql.engine.http.HttpQuery.rewrap(HttpQuery.java:417) at com.hp.hpl.jena.sparql.engine.http.HttpQuery.execGet(HttpQuery.java:358) at com.hp.hpl.jena.sparql.engine.http.HttpQuery.exec(HttpQuery.java:295) at com.hp.hpl.jena.sparql.engine.http.QueryEngineHTTP.execSelect(QueryEngineHTTP.java:346) at org.aksw.jena_sparql_api.core.QueryExecutionDecoratorBase.execSelect(QueryExecutionDecoratorBase.java:81) at org.aksw.jena_sparql_api.delay.core.QueryExecutionDelay.execSelect(QueryExecutionDelay.java:33) at org.aksw.jena_sparql_api.cache.core.QueryExecutionCacheEx.doCacheResultSet(QueryExecutionCacheEx.java:76) ... 15 more Caused by: org.apache.http.conn.HttpHostConnectException: Connection to http://helium.okfnlabs.org:3030 refused at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:190) at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294) at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:643) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:479) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906) at org.apache.http.impl.client.DecompressingHttpClient.execute(DecompressingHttpClient.java:137) at org.apache.http.impl.client.DecompressingHttpClient.execute(DecompressingHttpClient.java:118) at org.apache.jena.riot.web.HttpOp.exec(HttpOp.java:1109) at org.apache.jena.riot.web.HttpOp.execHttpGet(HttpOp.java:384) at org.apache.jena.riot.web.HttpOp.execHttpGet(HttpOp.java:446) at com.hp.hpl.jena.sparql.engine.http.HttpQuery.execGet(HttpQuery.java:346) ... 20 more Caused by: java.net.ConnectException: SpojenĂ bylo pĹ™Ăliš dlouho neaktivnĂ at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:127) at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180) ... 30 more [INFO RDFUnitUtils] Loaded 0 schema declarations from LOV SPARQL Endpoint [INFO RDFUnitUtils] Loaded 13 schema declarations from: java.io.FileInputStream@11613f3 https://github.com/java.io.FileInputStream/RDFUnit/commit/11613f3e [INFO TestGeneratorExecutor] Generating tests for: ../data/public-contracts.ttl [INFO TestGeneratorExecutor] ../data/public-contracts.ttl contains 160 automatically created tests [INFO SimpleTestExecutorMonitor] Testing ../data/TED_export/F04/dump04_one.nt [INFO SimpleTestExecutorMonitor] Test 1/160 returned Errors: 1 / Prevalence: 1. Test: rutt:.._data_public-contracts.ttl-OBJFUNC-f42f0359150c10560f3adec289603fcf9640fcd1c181288ed1bae04f6521026e [INFO SimpleTestExecutorMonitor] Test 2/160 returned Errors: 0 / Prevalence: 1. Test: rutt:.._data_public-contracts.ttl-OBJFUNC-476e57d611605c8028c5e4a20a8e16a1d12edf8fc474c3f88e0f2d0a9ad22c95 [INFO SimpleTestExecutorMonitor] Test 3/160 returned Errors: 0 / Prevalence: 0. Test: rutt:.._data_public-contracts.ttl-OBJFUNC-ef080b1155e72389dad3778da3fa696ad3674c52e14400f5f934085338eae8d2 [INFO SimpleTestExecutorMonitor] Test 4/160 returned Errors: 0 / Prevalence: 0. Test: rutt:.._data_public-contracts.ttl-OBJFUNC-c9d681794efe25b0191dd3823d53870e04d2aa9af0b3a1f8d451d58c41d022a1 [INFO SimpleTestExecutorMonitor] Test 5/160 returned Errors: 0 / Prevalence: 0. Test: rutt:.._data_public-contracts.ttl-OBJFUNC-3f4af77e3d3d0be40d2fa86308a17c5e001126fa517db668d171762abdabd10a
here is data I am testing
http://linked.opendata.cz/resource/ted.europa.eu/contract-notice/001152-2015 http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://purl.org/procurement/public-contracts#PriorInformationNotice . http://linked.opendata.cz/resource/ted.europa.eu/contract-notice/001152-2015 http://purl.org/procurement/public-contracts#publicationDate "2015-01-02"^^http://www.w3.org/2001/XMLSchema#date . http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015 http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://purl.org/procurement/public-contracts#Contract . http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015 http://purl.org/procurement/public-contracts#publicNotice http://linked.opendata.cz/resource/ted.europa.eu/contract-notice/001152-2015 . http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015 http://purl.org/procurement/public-contracts#kind http://purl.org/procurement/public-contracts-kinds#Supplies . http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015 http://purl.org/procurement/public-contracts#CompetitiveDialogue "false"^^http://www.w3.org/2001/XMLSchema#boolean . http://linked.opendata.cz/resource/ted.europa.eu/business-entity/71702ae9-8126-4319-a19f-230570a1063c http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://purl.org/goodrelations/v1#BusinessEntity . http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015 http://purl.org/procurement/public-contracts#contractingAuthority http://linked.opendata.cz/resource/ted.europa.eu/business-entity/71702ae9-8126-4319-a19f-230570a1063c . http://linked.opendata.cz/resource/ted.europa.eu/business-entity/71702ae9-8126-4319-a19f-230570a1063c http://purl.org/goodrelations/v1#legalName "Compania de Apa Oltenia SA" . http://linked.opendata.cz/resource/ted.europa.eu/postal-address/67dc081b-bf5e-4111-b6d3-f71f0166da3a http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://schema.org/PostalAddress . http://linked.opendata.cz/resource/ted.europa.eu/business-entity/71702ae9-8126-4319-a19f-230570a1063c http://schema.org/address http://linked.opendata.cz/resource/ted.europa.eu/postal-address/67dc081b-bf5e-4111-b6d3-f71f0166da3a . http://linked.opendata.cz/resource/ted.europa.eu/postal-address/67dc081b-bf5e-4111-b6d3-f71f0166da3a http://schema.org/streetAddress "Str. Brestei nr. 133" . http://linked.opendata.cz/resource/ted.europa.eu/postal-address/67dc081b-bf5e-4111-b6d3-f71f0166da3a http://schema.org/addressLocality "Craiova" . http://linked.opendata.cz/resource/ted.europa.eu/postal-address/67dc081b-bf5e-4111-b6d3-f71f0166da3a http://schema.org/postalCode "200177" . http://linked.opendata.cz/resource/ted.europa.eu/postal-address/67dc081b-bf5e-4111-b6d3-f71f0166da3a http://schema.org/addressCountry "RO" . http://linked.opendata.cz/resource/ted.europa.eu/business-entity/71702ae9-8126-4319-a19f-230570a1063c http://purl.org/procurement/public-contracts#profile "www.e-licitatie.ro"^^http://www.w3.org/2001/XMLSchema#anyURI . http://linked.opendata.cz/resource/ted.europa.eu/business-entity/71702ae9-8126-4319-a19f-230570a1063c http://xmlns.com/foaf/0.1/page "www.apaoltenia.ro"^^http://www.w3.org/2001/XMLSchema#anyURI . http://linked.opendata.cz/resource/ted.europa.eu/business-entity/71702ae9-8126-4319-a19f-230570a1063c http://purl.org/procurement/public-contracts#mainActivity http://purl.org/procurement/public-contracts-activities#Water . http://linked.opendata.cz/resource/ted.europa.eu/contact-point/5a73ee7a-5625-41bb-b57b-247d78f2b740 http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://schema.org/ContactPoint . http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015 http://purl.org/procurement/public-contracts#contact http://linked.opendata.cz/resource/ted.europa.eu/contact-point/5a73ee7a-5625-41bb-b57b-247d78f2b740 . http://linked.opendata.cz/resource/ted.europa.eu/contact-point/5a73ee7a-5625-41bb-b57b-247d78f2b740 http://schema.org/name "Serviciul Achizitii Publice" . http://linked.opendata.cz/resource/ted.europa.eu/contact-point/5a73ee7a-5625-41bb-b57b-247d78f2b740 http://schema.org/telephone "+40 251422117" . http://linked.opendata.cz/resource/ted.europa.eu/contact-point/5a73ee7a-5625-41bb-b57b-247d78f2b740 http://schema.org/email "achizitii.apaoltenia@gmail.com mailto:achizitii.apaoltenia@gmail.com" . http://linked.opendata.cz/resource/ted.europa.eu/contact-point/5a73ee7a-5625-41bb-b57b-247d78f2b740 http://schema.org/email "achizitii.apaoltenia@yahoo.com mailto:achizitii.apaoltenia@yahoo.com" . http://linked.opendata.cz/resource/ted.europa.eu/contact-point/5a73ee7a-5625-41bb-b57b-247d78f2b740 http://schema.org/faxNumber "+40 251422263" . http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015 http://purl.org/dc/terms/title "Autocuratitoare combinate intretinere canale."@RO https://github.com/RO . http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015 http://purl.org/procurement/public-contracts#kind http://purl.org/procurement/public-contracts-kinds#Supplies . http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015 http://purl.org/dc/terms/description "3 buc. autocuratitor combinat intretinere canale."@RO https://github.com/RO . http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015 http://purl.org/procurement/public-contracts#mainObject http://linked.opendata.cz/resource/cpv-2008/concept/34114000 . http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015 http://purl.org/procurement/public-contracts#duration "P6M"^^http://www.w3.org/2001/XMLSchema#duration . http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015/estimated-price/1 http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://schema.org/PriceSpecification . http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015 http://purl.org/procurement/public-contracts#estimatedPrice http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015/estimated-price/1 . http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015/estimated-price/1 http://schema.org/price "4153380"^^http://www.w3.org/2001/XMLSchema#decimal . http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015/estimated-price/1 http://schema.org/priceCurrency "RON" . http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015/estimated-price/1 http://schema.org/valueAddedTaxIncluded "false"^^http://www.w3.org/2001/XMLSchema#boolean . http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015/estimated-price/1 http://schema.org/description "Fonduri externe, Programul Operational Sectorial de Mediu."@RO https://github.com/RO . http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015 http://purl.org/dc/terms/description "Clauza suspensiva: Procedura de este initiata sub incidenta prezentei clauze suspensive, in sensul ca incheierea contractului de achizitie publica este conditionata de incheierea contractului de finantare cu autoritatea de management, semnarea contractului facandu-se cu respectarea dispozitiilor art. 94 din HG nr. 925/2006, cu modifi-carile si completarile ulterioare."@RO https://github.com/RO . http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015/identifier/1 http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://www.w3.org/ns/adms#Identifier . http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015 http://www.w3.org/ns/adms#identifier http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015/identifier/1 . http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015/identifier/1 http://www.w3.org/2004/02/skos/core#notation "CP03-2014" . http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015 http://purl.org/dc/terms/description "Procedura de achizitie se va face prin licitatie deschisa, online."@RO https://github.com/RO . http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015/agreed-price/1 http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://schema.org/PriceSpecification . http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015 http://purl.org/procurement/public-contracts#agreedPrice http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015/agreed-price/1 . http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015/agreed-price/1 http://schema.org/price "4153380"^^http://www.w3.org/2001/XMLSchema#decimal . http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015/agreed-price/1 http://schema.org/priceCurrency "RON" . http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015/agreed-price/1 http://schema.org/valueAddedTaxIncluded "false"^^http://www.w3.org/2001/XMLSchema#boolean . http://linked.opendata.cz/resource/ted.europa.eu/contract-notice/001152-2015 http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://contsem.unizar.es/def/sector-publico/pproc#ContractAwardNotice . http://linked.opendata.cz/resource/ted.europa.eu/public-contract/001152-2015 http://purl.org/procurement/public-contracts#notice http://linked.opendata.cz/resource/ted.europa.eu/contract-notice/001152-2015 . http://linked.opendata.cz/resource/ted.europa.eu/contract-notice/001152-2015 http://contsem.unizar.es/def/sector-publico/pproc#noticeSentDate "2014-12-29"^^http://www.w3.org/2001/XMLSchema#date .
— Reply to this email directly or view it on GitHub https://github.com/AKSW/RDFUnit/issues/32#issuecomment-81856517.
Signature Metamatter/Roland Cornelissen metamatter| *Drs. Roland Cornelissen| Weersterweg 12| 9832TE| Den Horn| T +31 (0)50 5515369| M +31 (0)6 14797518| *www.metamatter.nl http://www.metamatter.nl
https://github.com/opendatacz/public-contracts-ontology well I thought I was doing it by specifiying downloaded .ttl file
bin/rdfunit -d ../data/TED_export/F04/dump04_one.nt -s ../data/public-contracts.ttl -o html
Sorry @JakubKanaVSE I thought it was a cache issue but it was a bug in the test generators.
xsd:anyURI
was a common error and I tried to put some exceptions around it which also introduced a bug.
run git pull
and the first time you run RDFUnit again use bin/rdfunit-dev
to recompile the changes
after that you can use bin/rdfunit
again
I've retested and it works correct now. Thank you for your help.
I have RDF/XML data. Everything is checked fine but pc:profile isn't. I have this result.
Over this data
I belive there is no problem with this Literal within pc:profile element.
Ontology says this
https://code.google.com/p/public-contracts-ontology/source/browse/public-contracts.ttl
pc:profile a owl:InverseFunctionalProperty, owl:DatatypeProperty ; rdfs:subPropertyOf foaf:homepage ; rdfs:label "Profilová stránka zadavatele"@cs, "Profile web site of contracting authority"@en ; rdfs:comment "Vlastnost pro internetovou adresu profilové stránky zadavatele veřejných zakázek (URL). Kardinalita 0..1"@cs ; rdfs:comment "Property for the internet address of the profile of contracting authority (URL). Cardinality 0..1"@en ; rdfs:domain gr:BusinessEntity ; rdfs:range xsd:anyURI ; rdfs:isDefinedBy http://purl.org/procurement/public-contracts
Thank you for your consideration of this issue.