SolidOS / SolidOS/profile-pane

Language Data Notes

Open
#260 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

data model
Dominant language
TypeScript
Stars
8
Forks
11
Avg merge
4h 19m
Merged PRs (30d)
11

Description

language data when added through the current editProfilePane doesn't seem to be written correctly. Plus there are a couple ways of storing data documented in another issue. Handled by selecting based on all 3 ways,
Note: if I am correct then socialaccounts have the same issue
old way

        ( :id1629201755476 ), ( :id1629201755476 :id1629201806315 ),
        ( :id1629201755476 :id1629201806315 :id1629201830484 );
:id1621179872094 solid:publicId l:fr.

:id1621182189397 solid:publicId l:de.
l:de schema:name "germano"@ia.

l:el
    schema:name
        "Modern Greek"@en,
        "\u039d\u03ad\u03b1 \u03b5\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ae \u03b3\u03bb\u03ce\u03c3\u03c3\u03b1"@el.
l:fr schema:name "French"@en.``` 

I'm not sure about this [testingsolido](https://testingsolidos.solidcommunity.net/profile/card#me)

whats happening now


schema:knowsLanguage _:b15671_b15483_n3-11289, _:b15671_b15483_n3-11292, _:b15671_b15483_n3-11293;
_:b15671_b15483_n3-11289 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> <#id1775784735104>;
    <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> _:b15671_b15483_n3-11290.
_:b15671_b15483_n3-11292 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> <#id1775784735104>;
    <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil>.
_:b15671_b15483_n3-11293 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> <#id1775784735104>;
    <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> _:b15671_b15483_n3-11294.
https://sharontest.solidcommunity.net/profile/card#me

after doing lots of copiloting research


<#person> schema:knowsLanguage _:b1 .

First list node
_:b1 rdf:first <#id1775784472913> ;
     rdf:rest _:b2 .

Second list node
_:b2 rdf:first <#id1775784742094> ;
     rdf:rest rdf:nil .

The actual language objects
<#id1775784472913>
    solid:publicId <https://www.w3.org/ns/iana/language-code/es> ;
    schema:name "Spanish" .

<#id1775784742094>
    solid:publicId <https://www.w3.org/ns/iana/language-code/en> ;
    schema:name "English" . 

I am writing the data the last way, if a user has data stored the other way it will read it, delete the old way of storing the data and add it storing it the new way. This really needs to be tested and reviewed.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing language-data handling in the current editProfilePane and compare it with the three RDF storage forms shown in the issue. Verify reading each form, deleting the old representation, and writing the final list-node form; also check whether socialaccounts has the same problem. The issue names no files or tests, so identify the relevant test entry point before changing behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.