Skip to content

Language Data Notes #260

@SharonStrats

Description

@SharonStrats

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions