foaf:gender and foaf:phone with normalized tel: URIs#2
Merged
Conversation
FOAF sits above schema.org in the vocabulary cascade and covers both properties: gender as the spec-recommended "male"/"female" literals, phone as a tel: URI. Phone numbers are normalized to E.164 (+370) in the mapping BIND — bare 7-digit source values are Vilnius landlines (area code 5), national-format numbers drop the leading 8, unknown formats yield no tel: URI. Same URI-construction pattern as LinkedDataHub-Apps ETL mappings (e.g. demo/copenhagen). Co-Authored-By: Claude Fable 5 <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.
Follow-up to #1, per the vocabulary cascade (W3C → domain vocabs → schema.org → custom):
schema:gender schema:Male/Female→foaf:gender "male"/"female"(FOAF covers it, and sits above schema.org in the cascade)schema:telephoneliteral →foaf:phone <tel:+370…>: the mapping BIND normalizes source values to E.164 — bare 7-digit numbers are Vilnius landlines (area code 5), national format drops the leading 8,370…/+370…pass through, unrecognized formats yield notel:URI. Same URI-construction pattern as LinkedDataHub-Apps ETL mappings (e.g.demo/copenhagen/libraries.rq).All 140 phone values in the current Seimas feed normalize cleanly (
tel:+37052096…);persons.trigrebuilt and validated (148 graphs). The BIND pattern is documented inetl/ONTOLOGY-NOTES.mdfor reuse in future mappings with phone numbers.🤖 Generated with Claude Code