skos/commit
oops, rdf_label:label_hook also needs skosxl:altLabel
author | Jacco van Ossenbruggen |
---|---|
Wed Jul 30 23:05:55 2014 +0200 | |
committer | Jacco van Ossenbruggen |
Wed Jul 30 23:05:55 2014 +0200 | |
commit | 1dde820c83aab1eeb456da14435e51ddd36bcd5e |
tree | 90e0c6d3518931b8e9bb869d621515005fc7e414 |
parent | 0bddfc9557805eef21ec6fabbbb03cf9f5a0d3fb |
Diff style: patch stat
diff --git a/components/skos/components.pl b/components/skos/components.pl index d5793f6..b5da6e2 100644 --- a/components/skos/components.pl +++ b/components/skos/components.pl @@ -3,7 +3,6 @@ ]). :- use_module(library(semweb/rdf_db)). -:- use_module(library(semweb/rdf_label)). /** <module> Domain-specific components for SKOS models */ @@ -14,6 +13,9 @@ % one or more skosxl:literalForm attributes. rdf_label:label_hook(SKOS, Literal) :- - rdf_has(SKOS, skosxl:prefLabel, SKOSXL), + ( rdf_has(SKOS, skosxl:prefLabel, SKOSXL) + ; rdf_has(SKOS, skosxl:altLabel, SKOSXL) + ), rdf_has(SKOSXL, skosxl:literalForm, Literal). +