Skip to content

Allow limiting returned results to xsd:string#15

Open
elrayle wants to merge 1 commit intomainfrom
string_results_only
Open

Allow limiting returned results to xsd:string#15
elrayle wants to merge 1 commit intomainfrom
string_results_only

Conversation

@elrayle
Copy link
Copy Markdown
Contributor

@elrayle elrayle commented May 11, 2019

ruby-rdf/rdf Literal#has_datatype? specifically ignores Literals of the xsd:string type. The #plain method checks for string type. So that can be used to check if this is a string and also compare datatype to type if it is. This allows for limiting returned results to strings.

I suspect that the default type is xsd:string. So this may allow more matches than is desired. But without this test change, there are 0 matches when filtering for xsd:string.

I added an issue to ruby-rdf/rdf to ask about the reason for excluding xsd:string. See issue ruby-rdf/rdf#396 for more information.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet