Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lexical errors in SKOS Turtle output #22

Open
camerontt2000 opened this issue Jan 15, 2013 · 2 comments
Open

Lexical errors in SKOS Turtle output #22

camerontt2000 opened this issue Jan 15, 2013 · 2 comments
Labels

Comments

@camerontt2000
Copy link

So this pertains to the output from:
https://github.com/inpho/inpho/blob/master/util/rdf.py

I have loaded the output file from this (Turtle format selected) into Protege with SKOSed plugin installed. Several bits failed rdf validations, especially having to do with errant \r characters in journal names. Here are some of the errors:

o Lexical error at line 15728, column 28. Encountered: ‘\’ (92) after: “”

That corresponds to the lines

o http://inpho.cogs.indiana.edu/entity/4697 a inpho:entity;
o inpho:provenance "None";
o dc:created "None";
o dc:creator "None";
[15728] o skos:prefLabel "Abraxas\r" .

Similar errors in other journal names, e.g.

o jatus: Yearbook of the Philosophical Society of Finland\r
o skos:prefLabel "Contemporary Political Theory\r" .

Also, there still appeared to be a couple errant unicode errors in names; these two failed validation:
o owl:sameAs db:Adolf_Grünbaum,
o owl:sameAs db:Niccolò_Machiavelli,

Finally, I noticed that we had concepts for both foaf:Person (for turk users and inpho users) and foaf:person (for thinkers), which are read as distinct. They should be the same.

@camerontt2000
Copy link
Author

We do almost pass some validators, however; here is the result of a PoolParty SKOS validation on the normal turtle out file:
http://demo.semantic-web.at:8080/SkosServices/check

Results

Valid URIs: Passed!
Checks if URIs are valid and do not contain any invalid characters like whitespaces.
Missing Language Tags: Found 5484 occurrences of prefLabel without language tag.
Handles missing language tags of all sorts of SKOS labels and textual content.
Missing Labels: Passed!
Checks for missing labels - prefLabels for skos:Concepts and rdfs:labels for skos:ConceptSchemes.
Loose Concepts: Passed!
This checks handles loose concepts, i.e. concepts that are no topconcept in any scheme and have no broaders.
Disjoint OWL Classes: Passed!
Checks if there are any instances of owl:Classes that are declared disjoint.
Consistent Use of Labels: The skos:Concept with the URI http://inpho.cogs.indiana.edu/entity/2468 has more than one skos:prefLabel ("Judah ben Isaac Abravanel", "Judah Abrabanel") for Language "null"!
Checks if there are concepts with clashing SKOS labels, i.e.:
More than one prefLabel in the same language
A prefLabel that is also a hiddenLabel
A prefLabel that is also an altLabel
An altLabel that is also a hiddenLabel
Consistent Usage of Mapping Properties: Passed!
Checks if concepts are connected by clashing SKOS mapping relations:
skos:exactMatch and skos:broadMatch
skos:exactMatch and skos:relatedMatch
Consistent Usage of Semantic Relations: Passed!
Checks if concepts are connected by clashing semantic SKOS relations:´
connected by skos:related and skos:broaderTransitive
connected by skos:related and skos:narrower
Check passed
Mandatory check failed (not consistent with SKOS specification)
Optional check failed

@JaimieMurdock
Copy link
Member

Can you run these checks again on the most recent commit of the SKOS output? I've made some corrections.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants