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
TTL version of the vocabulary needs improvement #84
Comments
The RDF, OWL, JSONLD, and TTL files are generated by Apache Jena from the same data model and I notice that the OWL, JSONLD, and TTL files all contain redundant inheritance declarations while the RDF file does not. The only difference between how the files were generated is the value of the The code that generates the property definitions is just plain buggy. Both issues will be fixed in lappsgrid-incubator/vocabulary-dsl#10 |
@reckart I have deployed a test version to http://vocab.lappsgrid.org/1.3.0-SNAPSHOT for comment and review. In particular the RDF files are at http://vocab.lappsgrid.org/1.3.0-SNAPSHOT/lapps-vocabulary.ttl (et al). All of the generated RDF files had the same redundant information as the default Jena model uses a Reasoner that generates all the triples it can infer. The redundant triples are removed by specifying a model that does not do inferencing. The Note There are two definitions for Morphology included (http://vocab.lappsgrid.org/1.3.0-SNAPSHOT/Morphology and http://vocab.lappsgrid.org/1.3.0-SNAPSHOT/Token#morph). These are included only to test the schema generation and file deployment and do not represent how the WSEV may eventually represent morphological annotations. |
NOTE Updated URLs now contain -SNAPSHOT |
It seems to me as if the TTL version (or maybe all LD versions) of the LAPPS vocabulary could use some refactoring.
My understanding is that these should represent a schema (based on OWL and/or RDFS). As such, the LAPPS types would be classes (
rdfs:class
orowl:class
) and their attributes should be properties (rdfs:Property
,owl:DatatypeProperty
orowl:ObjectProperty
).Let's take
http://vocab.lappsgrid.org/Token
as an example. The current TTL file says:The inheritance information is highly redundant. The triple
<http://vocab.lappsgrid.org/Token> <http://vocab.lappsgrid.org/Token#pos> "String or URI"
does not express in RDFS or OWL that Token has an attribute called pos which can take a String or URI.I believe a better representation would be e.g.
I removed the (inferred) redundant information from the
a
andrdfs:cubClassOf
statements and rendered the value type information asrdfs:range
.However, there is still a little problem here: it does not express that the range can be a "String or URI" - specifying multiple types as range indicates an intersection of the types (which would be empty in this case), not a disjunction. That is why I only put the "more generic" type
xsd:string
here.The text was updated successfully, but these errors were encountered: