jo-pol / gedcom2sem

connects GedCom files with the semantic web
https://jo-pol.github.io/gedcom2sem/
Other
5 stars 2 forks source link

apply validation #18

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
See for example 
http://stackoverflow.com/questions/12979797/how-to-validate-a-rdf-with-your-rdf-
schema

Apply after transform removed the original data and wrote the output. Try to 
use the prefix mapping to know against which schema(s) validation should happen.

Original issue reported on code.google.com by jo3....@gmail.com on 16 Apr 2013 at 7:55

GoogleCodeExporter commented 9 years ago
Tried http://www.langdale.com.au/validate/ 
but http://vocab.org/bio/0.1/.rdf causes a null pointer exception and 
http://xmlns.com/foaf/spec/20100809.rdf causes
org.xml.sax.SAXParseException: [SM] Property element 
http://www.w3.org/2000/01/rdf-schema#subClassOf has invalid attribute 
'QNAME[http://www.w3.org/2000/01/rdf-schema#,label]'. Only rdf:resource is 
allowed.

An alternative could be on http://clarkparsia.com/pellet/tutorial/ especialy 
sheet 59 seems to address the issue.

Original comment by jo3....@gmail.com on 9 May 2013 at 8:33

GoogleCodeExporter commented 9 years ago
waits for new release of Jena, see 
http://mail-archives.apache.org/mod_mbox/jena-users/201305.mbox/%3C518FE79C.8010
207@apache.org%3E

Original comment by jo3....@gmail.com on 13 May 2013 at 10:44

GoogleCodeExporter commented 9 years ago
implemented the jena upgrade to overcome a nullpointer exception, but the OWL 
reasoner does not signal any of the expected errors in the invalid test input. 
See 
https://code.google.com/p/gedcom2sem/source/browse/#svn%2Ftrunk%2Fsrc%2Ftest%2Fr
esources%2Finvalid
https://code.google.com/p/gedcom2sem/source/browse/trunk/src/test/java/gedcom2se
m/semweb/ValidationTest.java

No succes yet in getting the pellet alternative compiling. 

Original comment by jo3....@gmail.com on 22 May 2013 at 7:45

GoogleCodeExporter commented 9 years ago
Some wrong expectations about validation are clearly explained on 
http://www.amberdown.net/2009/09/faq-using-rdfs-or-owl-as-a-schema-language-for-
validating-rdf/ 

but at least a resource being its own mother should violate the fact that  
http://vocab.org/bio/0.1/.html#mother is a sub property of 
http://www.w3.org/2002/07/owl#differentFrom

Original comment by jo3....@gmail.com on 22 May 2013 at 12:06