-
Notifications
You must be signed in to change notification settings - Fork 34
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
Multiple language literals cannot be accessed #91
Comments
Yes, the expectation originally was a 1:1 mapping from field unless specified otherwise via an annotation. Your commit seems ok, but I think there are cases where you don't know all the language tags you are interested in a priori. In those cases, you probably want all of them (on the bean), and a way at runtime to get a specific version w/ a given language. So it might be the case that the normal behavior is fine, but that there is a new 'primitive' |
Sounds good as well. |
I can, but it won't be any time soon. If you need it in the near future, I'd recommend doing it yourself. It should be pretty straightforward. When the field is not a Collection, it tries to see if it's a list of literals, and if It's probably there that you might put in the logic to do something smarter w/ the conversion of the list of lang-tagged literals.
The opposite conversion is easier, you'd just need an |
In my ontology, have no assurance that the prefLabels have languages:
So I'm trying to create a "LabelledModel" that can work with either:
Currently, RdfGenerator.fromRDF maintains the aAccessMap as PropertyURI -> Field 1:1 mapping. The way I understand the problem, I can only have one field linked to a property, whereas to capture the different language literals, I need multiple.
The current code threw exceptions trying to cast a String to a Collection?!
I tried to fix this in a3li/Empire@2f3723d
As I'm digging really deep into the core, I'd appreciate some comments before submitting a pull request.
The text was updated successfully, but these errors were encountered: