Localise namespace ontology: Lithuanian property + class labels - #21
Merged
Conversation
app/ns.ttl — add bilingual (@lt/@en) rdfs:label to the standard predicates that had none (foaf:depiction/mbox/phone/name/givenName/familyName/gender, dct:identifier/title/type, geo:lat/long, cv:level, schema:foundingDate/ dissolutionDate/validFrom/validThrough, rov:companyType/orgStatus/legalName, skos:prefLabel/altLabel/notation/exactMatch/scopeNote/inScheme/topConceptOf, locn:postCode, org:hasRegisteredSite/siteAddress, owl:sameAs, foaf:img/…). LDH resolves predicate labels by DESCRIBE-ing them against {base}ns, so these now render Lithuanian column labels (English to en clients — all bilingual, content-negotiated). Also label the remaining classes used as rdf:type (org:FormalOrganization, rov:RegisteredOrganization, org:Site, locn:Address, dct:Location, skos:Concept/ConceptScheme, dh:Item/Container) so the type badges localise. Class badges only surface these once /ns labels are merged into LDH's object-metadata — atomgraph/linkeddatahub 6d120d5 (client) + fd5593b5 (server initial paint) — so no XSLT bridge is needed; the ontology is the single source of truth. files/overrides.xsl — add a skos:altLabel ac:label fallback (the base client stylesheets negotiate rdfs:label/dc:title/skos:prefLabel but not altLabel). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Makes the end-user app render in Lithuanian by localising the namespace ontology (
app/ns.ttl) rather than the data or XSLT — the vocabulary terms become the single source of truth, content-negotiated (Lithuanian toltclients, English toen).What changed
app/ns.ttl@lt/@en)rdfs:labelon the standard predicates that had none:foaf:depiction/mbox/phone/name/givenName/familyName/gender,dct:identifier/title/type,geo:lat/long,cv:level,schema:foundingDate/dissolutionDate/validFrom/validThrough,rov:companyType/orgStatus/legalName,skos:prefLabel/altLabel/notation/exactMatch/scopeNote/inScheme/topConceptOf,locn:postCode,org:hasRegisteredSite/siteAddress,owl:sameAs,foaf:img/…. LDH resolves predicate labels by DESCRIBE-ing them against{base}ns, so these now drive the property-table column labels.rdfs:labelon the remaining classes used asrdf:type(org:FormalOrganization,rov:RegisteredOrganization,org:Site,locn:Address,dct:Location,skos:Concept/ConceptScheme,dh:Item/Container), so therdf:typebadges localise (Asmuo,Administracinis vienetas,Sąvokų schema, …).files/overrides.xslskos:altLabelac:labelfallback (the base stylesheets negotiaterdfs:label/dc:title/skos:prefLabelbut notaltLabel). Minor/defensive.Dependency
Class-badge localisation relies on LDH merging
/nslabels into$object-metadata—atomgraph/linkeddatahub6d120d5 (client) + fd5593b5 (server initial paint). The image pin that ships those (indocker-compose.override.yml) is intentionally not in this PR; land it alongside. Property labels work independently of that change. Earlier this was bridged with an inline class-label vocabulary inoverrides.xsl; the LDH merge made it unnecessary, so it was removed and the ontology is now the only source.Verification
Browsed the running app under both locales (Playwright, CSR):
lt→Asmuo/Administracinis vienetas/Formalioji organizacija+Registruotas juridinis asmuo/ property labelsAtvaizdas,Identifikatorius,Teisinė forma, …;en→Person/Administrative unit/Depiction, … — negotiation intact.🤖 Generated with Claude Code