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

Prefix expansion does not work in rdf11 hooks #67

Open
wouterbeek opened this issue Sep 29, 2017 · 0 comments
Open

Prefix expansion does not work in rdf11 hooks #67

wouterbeek opened this issue Sep 29, 2017 · 0 comments

Comments

@wouterbeek
Copy link
Contributor

wouterbeek commented Sep 29, 2017

Is it possible to use RDF prefix expansion in predicates that are hooks in semweb/rdf11?

In the following example, I try to add a clause to the hooks in rdf11, but these added clauses are never used because the datatype argument xsd:string is not expanded.

:- use_module(library(semweb/rdf11)).

:- multifile
    in_ground_type_hook/3,
    out_type_hook/3.

:- rdf_meta
    in_ground_type_hook(r,+,-),
    out_type_hook(r,-,+).

in_ground_type_hook(xsd;string, Atom, String) :-
  atom_string(Atom, String).

out_type_hook(xsd:string, Atom, String) :-
  atom_string(Atom, String).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant