-
Notifications
You must be signed in to change notification settings - Fork 0
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
Proposal: Check if if resource has rdf:type #87
Comments
how is it possible to have no rdf:type? Could you give an example? |
implies that
without making it explicit. What @edroege proposes means that the graph should contain those statements:
Many providers provide data such as:
without asserting anything about |
@kba: Thanks for clarifying! I think it has to be explicit. In case of Web resources, Aggregations and CHOs we could get this information afterwards because shownBy has only a web resource as a range etc. But in cases where the range is broader, like edm:Agent (with subclasses foaf:Person and foaf:Organization), we cannot get the information if the class edm:Agent, foaf:Person or foaf:Organization was meant. |
<rdf:Description rdf:about="http://en.wikipedia.org/wiki/Oxford">
<dc:title>Oxford</dc:title>
<dc:coverage>Oxfordshire</dc:coverage>
<dc:publisher>Wikipedia</dc:publisher>
<region:population>10000</region:population>
<region:principaltown rdf:resource="http://www.country-regions.fake/oxford"/>
</rdf:Description> Valid RDF -> You have no idea what type "http://en.wikipedia.org/wiki/Oxford" has |
Unfortunately, I don't get it. It seems to me to be syntactical issue. When I look at the turtle representation, rdf/xml or even the html-representation of the above mentioned sample, there is always a clear declaration of the class, e.g.:
@d0rg0ld @edroege Where do you find such "orphaned", untyped triples? |
@ksdm2e One place I do notice this issue is in MPIWG/Harriot: http://data.dm2e.eu/data/rdf/resourcemap/mpiwg/harriot/MPIWG_0HE26A22/20140306195409535?output=ttl. Resolving one random page: http://data.dm2e.eu/data/rdf/resourcemap/mpiwg/harriot/MPIWG_0HE26A22_00104/20140306195409535?output=ttl There are no |
@kba yeah it's because they use the |
@d0rg0ld Actually, MPIWG delivers N-TRIPLE but the pitfalls are the same. |
@kba ok I was referring to an old sample I got months ago ... |
@ksdm2e I just took some example URIs to make my point clearer. Your data is fine - sorry if you have thought that there is something wrong. I was suggesting to add a warning or something to the validator, not to correct ingestions. We will make it clearer in the next revision of the model specification that the mappings should contain classes. Can the validator check during the ingestion if e.g. the class edm:ProvidedCHO occurs as often as the property edm:aggregatedCHO? Or is this too complicated? |
I will implement the wanted behavior in the validator, check that every object in '?s edm:aggregatedCHO ?object' triple is an (has rdf:type) edm:ProvidedCHO and every object in triple with a WebResource-related predicate (edm:hasView, edm:shownAt, edm:shownBy ...) is a (has rdf:type) edm:WebResource. Will notify once deployed. |
OK, the validator will now emit a WARNING for every subject in a file that has no 'rdf:type' statements. Deployed since build 'Mon Apr 7 23:12:14 CEST 2014', please re-download. |
The validator should check if individuals (like http://data.dm2e.eu/data/item/mpiwg/harriot/MPIWG_0HE26A22_00108 ) have an rdf:type (like e.g. http://www.europeana.eu/schemas/edm/ProvidedCHO ).
This should be checked for all classes: CHO and Aggregation but also for contextual classes like Agents, Places, Timespans etc.
If no class is indicated, give a warning.
The text was updated successfully, but these errors were encountered: