Closed tpluscode closed 1 year ago
You can write the above as
@prefix ch: <https://schema.ld.admin.ch/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix string: <http://www.w3.org/2000/10/swap/string#> .
@prefix log: <http://www.w3.org/2000/10/swap/log#>.
@prefix schema: <http://schema.org/>.
ch:abc a ch:Canton;
schema:alternateName "Abc".
{
?canton a ch:Canton .
?canton schema:alternateName ?name .
?classification log:uri ( "http://classifications.data.admin.ch/canton/" ?name!string:lowerCase )!string:concatenation .
}
=>
{
?canton owl:sameAs ?classification .
} .
giving
ch:abc owl:sameAs <http://classifications.data.admin.ch/canton/abc>.
Fantastic!
The exclamation mark is a standard n3 feature?
Thank you!
I have this rule, which uses some built-ins
Is it possible to inline variables
?nameLower
and?c
?