-
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
Ajouter un paramètre pour contrôler le prédicat utilisé pour les types dans les requêtes (rdf:type / wdt:p31 pour Wikidata) #72
Comments
Plus précisément, on va vouloir passer "wdt:P31/wdt:P279*" |
@tfrancart hello! I've been trying to use type predicate to get the "http://www.wikidata.org/prop/direct/P279*" behaviour, but I could not find a way of implementing that in native Sparnatural. If I set something like
The system will render Any ideas on how to make it work? Thanks!! |
Hi @lubianat, are you using version <8? I just noticed that this feature is missing in version >8. I can have a look at it |
I am not sure which version I am using, this is the repo: https://github.com/lubianat/cell_ontology_sparql (I tried to find out which version, but could not find it) |
Yes you are using the old version. I have a fix for the sparql property path (*) already but I will investigate more on how to cover the others as well (https://www.w3.org/TR/sparql11-query/#propertypaths). |
Hmmm, this feature **is** in v8, see
http://docs.sparnatural.eu/Javascript-integration#html-attributes-reference,
"typePredicate" parameter, and
https://github.com/sparna-git/Sparnatural/blob/1f2b07828e02933e747e4dc090ef60e1df95c36f/src/SparnaturalAttributes.ts#L6
@SteinerPascal, make sure you update your source code as I ported this
right before publishing v8.
Le mer. 18 janv. 2023 à 21:22, SteinerPascal ***@***.***> a
écrit :
… Hi @lubianat <https://github.com/lubianat>, are you using version <8? I
just noticed that this feature is missing in version >8. I can have a look
at it
—
Reply to this email directly, view it on GitHub
<#72 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAU2H4KX67553Z4CDYGATFLWTBGGVANCNFSM4GXEB5TA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
*Thomas Francart* -* SPARNA*
Web de *données* | Architecture de l'*information* | Accès aux
*connaissances*
blog : blog.sparna.fr, site : sparna.fr, linkedin :
fr.linkedin.com/in/thomasfrancart
tel : +33 (0)6.71.11.25.97, skype : francartthomas
|
And right now you can't use a property path as a value of this parameter,
just a predicate.
Le mer. 18 janv. 2023 à 22:19, Thomas Francart ***@***.***>
a écrit :
… Hmmm, this feature **is** in v8, see
http://docs.sparnatural.eu/Javascript-integration#html-attributes-reference,
"typePredicate" parameter, and
https://github.com/sparna-git/Sparnatural/blob/1f2b07828e02933e747e4dc090ef60e1df95c36f/src/SparnaturalAttributes.ts#L6
@SteinerPascal, make sure you update your source code as I ported this
right before publishing v8.
Le mer. 18 janv. 2023 à 21:22, SteinerPascal ***@***.***> a
écrit :
> Hi @lubianat <https://github.com/lubianat>, are you using version <8? I
> just noticed that this feature is missing in version >8. I can have a look
> at it
>
> —
> Reply to this email directly, view it on GitHub
> <#72 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAU2H4KX67553Z4CDYGATFLWTBGGVANCNFSM4GXEB5TA>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
--
*Thomas Francart* -* SPARNA*
Web de *données* | Architecture de l'*information* | Accès aux
*connaissances*
blog : blog.sparna.fr, site : sparna.fr, linkedin :
fr.linkedin.com/in/thomasfrancart
tel : +33 (0)6.71.11.25.97, skype : francartthomas
--
*Thomas Francart* -* SPARNA*
Web de *données* | Architecture de l'*information* | Accès aux
*connaissances*
blog : blog.sparna.fr, site : sparna.fr, linkedin :
fr.linkedin.com/in/thomasfrancart
tel : +33 (0)6.71.11.25.97, skype : francartthomas
|
@tfrancart have you tested it? doesn't seem to work for me on main branch... also I can not see where it is integrated into the sparqlgenerator... |
Ho yes, there is something wrong here. The parameter is passed down to RdfJsGenerator at https://github.com/sparna-git/Sparnatural/blob/master/src/sparnatural/generators/SparqlSelectBuilder.ts#L31, but never used. I will open a new issue. |
@lubianat As you can see i have a solution for any kind of property path for the type predicates. It should be merged into the main branch anytime soon. |
Wikidata (https://query.wikidata.org) n'utilise pas rdf:type pour déclarer l'information de type, mais un prédicat spécial, wdt:p31 (full URI
<http://www.wikidata.org/prop/direct/P31>
).Il faut ajouter une option de config "typePredicate" pour contrôler l'identifiant utilisé pour construire les queries. Par défaut cela doit rester "rdf:type", mais on veut pouvoir l'overwriter avec la valeur 'http://www.wikidata.org/prop/direct/P31'.
The text was updated successfully, but these errors were encountered: