Hi, I'm getting these exceptions while trying to do an ICV. My database has a couple million triples so it will be hard to reduce this to a small sample to reproduce the problem. I'm trying to understand what the error means, though. What type of encoding is it talking about? Is it some internal encoding or are we talking about character encodings, or something else?
--
-- --
You received this message because you are subscribed to the C&P "Stardog" group.
To post to this group, send email to sta...@clarkparsia.com
To unsubscribe from this group, send email to
stardog+u...@clarkparsia.com
For more options, visit this group at
http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en
Is it the one pointed to by LOG_FILE? It so, there doesn't seem to be
anything relevant there.
Here's how to reproduce it:
~/bin/stardog-3.1.4/bin/stardog-admin server start
~/bin/stardog-3.1.4/bin/stardog-admin db drop wn
~/bin/stardog-3.1.4/bin/stardog-admin db create -n wn wn30.ttl
~/bin/stardog-3.1.4/bin/stardog data add wn wordnet-en.nt
~/bin/stardog-3.1.4/bin/stardog data add wn own-pt.nt
~/bin/stardog-3.1.4/bin/stardog data add wn skos.rdf
~/bin/stardog-3.1.4/bin/stardog-admin icv add -v wn wn30.ttl
~/bin/stardog-3.1.4/bin/stardog icv validate -v -r wn <--- this is
there the exception is thrown.
You can download wn30.ttl, wordnet-en.nt and own-pt.nt from
https://github.com/own-pt/openWordnet-PT
You can download SKOS from http://www.w3.org/TR/skos-reference/skos.rdf
On Aug 24, 2015, at 11:54 AM, Michael Grove <mi...@complexible.com> wrote:On Fri, Aug 21, 2015 at 7:05 PM, Fabricio <fcb...@gmail.com> wrote:Here's how to reproduce it:
~/bin/stardog-3.1.4/bin/stardog-admin server start
~/bin/stardog-3.1.4/bin/stardog-admin db drop wn
~/bin/stardog-3.1.4/bin/stardog-admin db create -n wn wn30.ttl
~/bin/stardog-3.1.4/bin/stardog data add wn wordnet-en.nt
~/bin/stardog-3.1.4/bin/stardog data add wn own-pt.nt
~/bin/stardog-3.1.4/bin/stardog data add wn skos.rdf
~/bin/stardog-3.1.4/bin/stardog-admin icv add -v wn wn30.ttl
~/bin/stardog-3.1.4/bin/stardog icv validate -v -r wn <--- this is
there the exception is thrown.
You can download wn30.ttl, wordnet-en.nt and own-pt.nt from
https://github.com/own-pt/openWordnet-PT
You can download SKOS from http://www.w3.org/TR/skos-reference/skos.rdfI think I've tracked down what's going on here, and with what Alexandre reported. You really probably don't mean for wn30.ttl to be used as contraints, many of the axioms in that file do not make sense as constraints.
Some of them we'll filter out automatically, such as ones using annotations (ticket #2455), but you're best off directly writing the constraints you want to validate.
What's happening is that there are so many constraint violations, well over 200, that Stardog is running out of memory computing all of the violations and sending them across the wire. This seems to be the encoding problem you're seeing, it's OOMing while writing the result, and what appears to be "stuck" validation as reported by Alexandre; icv validate tries to print all of the violations.
We will improve the streaming of results back to the client to avoid the memory issue in a future release (ticket #2456), but in the meantime, you should try authoring just the constraints you mean to validate.
Hi Michael,On Aug 24, 2015, at 11:54 AM, Michael Grove <mi...@complexible.com> wrote:On Fri, Aug 21, 2015 at 7:05 PM, Fabricio <fcb...@gmail.com> wrote:Here's how to reproduce it:
~/bin/stardog-3.1.4/bin/stardog-admin server start
~/bin/stardog-3.1.4/bin/stardog-admin db drop wn
~/bin/stardog-3.1.4/bin/stardog-admin db create -n wn wn30.ttl
~/bin/stardog-3.1.4/bin/stardog data add wn wordnet-en.nt
~/bin/stardog-3.1.4/bin/stardog data add wn own-pt.nt
~/bin/stardog-3.1.4/bin/stardog data add wn skos.rdf
~/bin/stardog-3.1.4/bin/stardog-admin icv add -v wn wn30.ttl
~/bin/stardog-3.1.4/bin/stardog icv validate -v -r wn <--- this is
there the exception is thrown.
You can download wn30.ttl, wordnet-en.nt and own-pt.nt from
https://github.com/own-pt/openWordnet-PT
You can download SKOS from http://www.w3.org/TR/skos-reference/skos.rdfI think I've tracked down what's going on here, and with what Alexandre reported. You really probably don't mean for wn30.ttl to be used as contraints, many of the axioms in that file do not make sense as constraints.Some of them we'll filter out automatically, such as ones using annotations (ticket #2455), but you're best off directly writing the constraints you want to validate.Well, but it would be very laborious to separate the constraints from the model definition.
What's happening is that there are so many constraint violations, well over 200, that Stardog is running out of memory computing all of the violations and sending them across the wire. This seems to be the encoding problem you're seeing, it's OOMing while writing the result, and what appears to be "stuck" validation as reported by Alexandre; icv validate tries to print all of the violations.Can we give to the tool the upper limit for the number of violations to be returned? In this way, we don't need to create different files for each constraint but control the amount of "errors" to receive back.
We will improve the streaming of results back to the client to avoid the memory issue in a future release (ticket #2456), but in the meantime, you should try authoring just the constraints you mean to validate.We don't know in advance the constraints that we want to validate, we are using the tool precisely to help us to identify which constraints were not respected in the data.
Best,Alexandre
Hi Evren and Michael,
Thanks for clarifying. Indeed, now it is much clearer to me the argument in favor of having the constraints separated from the 'ontology'. The OWA and CWA semantics are per axiom, right?
I have already understood that all axioms in the file provided in the 'db creation', were defined with OWA semantics. But if the same axioms are provided as constraints lately, the OWA version is not overwritten by the CWA?
What are the minimum information that we must provide in the file passed to 'db creation'? Classes and properties declarations only?