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

Fix various inconsistencies in knora-base.ttl and docs. #330

Merged
merged 4 commits into from
Nov 28, 2016

Conversation

benjamingeer
Copy link

@benjamingeer benjamingeer commented Nov 21, 2016

Fixes inconsistencies in knora-base.ttl:

  • Add datatype properties knora-base:name, knora-base:givenName, and knora-base:familyName, as subproperties of the corresponding foaf properties and of knora-base:objectCannotBeMarkedAsDeleted, and use the knora-base properties instead of the foaf ones, so consistency rules can check them properly.
  • Change the type of knora-base:valueHas to rdf:Property, so its subproperties can be either object properties or datatype properties.
  • Make valueHasListNode an object property.
  • Remove incorrect cardinalities for hasComment on value classes.
  • Fix cardinalities on DocumentRepresentation and TextRepresentation.
  • Remove unused properties currentproject, filename, and protocol.
  • Don't use foaf:birthday, whose object should be a literal.
  • Don't use foaf:member, because it means the opposite of what was intended.
  • Improve comments and labels.
  • Use the term Julian Day Number instead of Julian Day Count (JDC or JDN? #327).

Test data and tests are fixed accordingly. There are also some corrections and clarifications in knora-base.rst.

Closes #327.
Closes #328.

@@ -724,9 +735,7 @@

:subjectClassConstraint :User ;

:objectClassConstraint :knoraProject ;

rdfs:subPropertyOf foaf:member .
Copy link
Contributor

@tobiasschweizer tobiasschweizer Nov 28, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume that we do not relate �isInGroup to foaf anymore.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, as the pull request description says: "Don't use foaf:member, because it means the opposite of what was intended."

@@ -1473,7 +1459,7 @@

### http://www.knora.org/ontology/knora-base#valueHas

:valueHas rdf:type owl:DatatypeProperty ;
:valueHas rdf:type rdf:Property ;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why would a subproperty of valueHas be an object property? Wouldn't it rather be a subproperty of hasLinkTo then?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For example, valueHasListNode has to be an object property, because its object is aListNode, not a literal. It can't be a subproperty of hasLinkTo, because both the subject and object of hasLinkTo must be instances of Resource.

@@ -1637,7 +1623,7 @@

### http://www.knora.org/ontology/knora-base#valueHasListNode

:valueHasListNode rdf:type owl:DatatypeProperty ;
:valueHasListNode rdf:type owl:ObjectProperty ;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this change the answer to my question above?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes.

@@ -2730,11 +2700,7 @@

:TextFileValue rdf:type owl:Class ;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we going to store a document in the triplestore itself or are we going to store a file path?

I think in case of an XML file or any other simple plain text format we could store it in the triplestore, but not other non trivial formats.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would make sense to store it in the triplestore if we could search its contents using full-text search. I think Lucene can be configured to handle XML syntax, but we'd have to look into this. Otherwise, I think it makes more sense to store it in a file.

@@ -9,40 +9,110 @@
@prefix salsah-gui: <http://www.knora.org/ontology/salsah-gui#> .
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not understand what you did in this file.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or did you transform it using Transform data to change jdc to jdn?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes.

@@ -254,8 +260,6 @@ object TransformData extends App {

/**
* Looks for regions that have the label "test" and changes their label to the value of their `knora-base:hasComment`.
*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you remove the documentation of the required param? Because it is already documented in the abstract super class?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but I'll put it back.

@benjamingeer benjamingeer merged commit 3d7176b into develop Nov 28, 2016
@benjamingeer benjamingeer deleted the wip/ontology-fixes branch November 28, 2016 16:32
SepidehAlassi added a commit that referenced this pull request Dec 13, 2016
* develop:
  Improve configuration for more concurrent requests (#338)
  Upgrade to Scala 2.12 (#343)
  Fix various inconsistencies in knora-base.ttl and docs. (#330)
  Fix language switching and login/logout in SALSAH (#331)
  Graph data API operation (#267)
  Allow connections over HTTPS (#332)
  Update README.md
  Add link to GraphDB.
  fix (salsah): Add missing JavaScript “var”.
  fix (webapi): Fix RouteUtilV1 so it returns HTML instead of JSON when requested (#326)
  Ontology and documentation fixes. (#325)
  fix (salsah): Create multiple links in a resource, and other bug fixes (#315)
  feature (webapi): Make TransformData fix “test” labels on regions. (#311)
  Fixes for subclasses and subproperties (#303)
  Add script to update docs on knora.org (#300)
  docs: Make trivial change for testing purposes.
  fix (webapi): CORS problems (#307)
  Use inference to optimise searches on GraphDB (#301)
@benjamingeer benjamingeer mentioned this pull request Jul 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Knora Base Ontology and documentation JDC or JDN?
3 participants