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

Nondeterministic behaviour of EntityInfoV1.getPredicateObject #627

Closed
subotic opened this issue Oct 6, 2017 · 3 comments
Closed

Nondeterministic behaviour of EntityInfoV1.getPredicateObject #627

subotic opened this issue Oct 6, 2017 · 3 comments
Labels
bug something isn't working

Comments

@subotic
Copy link
Collaborator

subotic commented Oct 6, 2017

Example:

PredicateInfoV1(
objectsWithLang = Map(
"de" -> "Urspr\u00FCnglicher Dateiname",
"fr" -> "Nom de fichier original"
),
objects = Set(),
ontologyIri = "http://www.knora.org/ontology/incunabula",
predicateIri = "http://www.w3.org/2000/01/rdf-schema#label"
)

The ordering of de and fr is arbitrary. So when the preferred and system language are en, then it is not clear what we will receive.

Issue came up while running OntologyResponderV1Spec in the get all the resource classes with their property types for incunabula named graph in conjunction with AllegroGraph.

@subotic subotic added the bug something isn't working label Oct 6, 2017
@subotic subotic mentioned this issue Oct 6, 2017
5 tasks
@benjamingeer
Copy link

The ordering of de and fr is arbitrary because it's also arbitrary in the triplestore. What behaviour would you like in this case?

@benjamingeer
Copy link

Should we just sort by language code in order to have a deterministic response?

@subotic
Copy link
Collaborator Author

subotic commented Oct 6, 2017

Sorting by language code sounds good.

benjamingeer pushed a commit that referenced this issue Oct 6, 2017
benjamingeer pushed a commit that referenced this issue Oct 6, 2017
SepidehAlassi added a commit that referenced this issue Oct 31, 2017
* develop:
  fix (webapi): update lucene index on sparql update when using graphdb-free (#633)
  KnarQL Route and Documentation (#620)
  feature (extended search V1): support Boolean value in extended search V1 (#643)
  Make the hostname of project-specific API v2 ontologies configurable (#631)
  build (travis): deactivate browser tests (#640)
  test (salsah): add headless browser testing on Travis (#590)
  Serve an ontology when its IRI is dereferenced (#616)
  fix (webapi): When requested languages aren't available, take the first one in alphabetical order (#627). (#628)
  Use cardinalities to get referenced ontologies for XML import schemas. (#617)
  docs (webapi): add description (#622)
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

No branches or pull requests

2 participants