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
To string method #233
Comments
Good point. There is a ->label() method that does this, and falls back to other properties if no rdfs:label is available. |
Thank you for your response. The problem is that today, we use a tierce library that casts an object into a string. So we can not pass by an other function that __toString or profit of the label function in this case. |
Is there anything to add here? If not, we should close this issue and mark it as "wont-fix". |
Yeah, I think that @conjectwan sorry, this was a very long time ago, so you have probably moved on, but you could subclass |
Hello,
If we need to have a human-readable version of a resource, we pass by the __toString method.
I'm asking myself about the pertinence to return the resource uri. Indeed, the uri is not very human-readable. That would not be preferable to return a rdfs:label if it is defined ?
Thank you in advance.
The text was updated successfully, but these errors were encountered: