diff --git a/README.md b/README.md index f4ff179..059230c 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ This is the final working version. ``` npm install +npm run build:ldo npm run dev ``` diff --git a/src/.shapes/contact.shex b/src/.shapes/contact.shex index f74c67e..b515173 100644 --- a/src/.shapes/contact.shex +++ b/src/.shapes/contact.shex @@ -25,8 +25,8 @@ ngc:SocialContact EXTRA a { } ngc:HasRating { - a [ xskills:Rating ]; - xskills:rated xsd:integer; - xskills:skill [ ksp:svelte ksp:nextjs ksp:react ksp:vuejs ksp:tailwind + a [ xskills:Rating ] ; + xskills:rated xsd:integer; + xskills:skill [ ksp:svelte ksp:nextjs ksp:react ksp:vuejs ksp:tailwind ksp:rdf ksp:rust ksp:yjs ksp:automerge ] } \ No newline at end of file diff --git a/src/Contact.tsx b/src/Contact.tsx index d67a894..5e2f2ae 100644 --- a/src/Contact.tsx +++ b/src/Contact.tsx @@ -68,6 +68,7 @@ export const Contact: FunctionComponent = ({nuri}) => { let re = getResource(nuri); let editing_contact = changeData(contact, re); editing_contact.hasRating.add({ + type : { "@id": "Rating" }, rated: rating-1, skill: { "@id": ksp + ksp_mapping[skill] diff --git a/src/Query.tsx b/src/Query.tsx index 268e7be..b1445ed 100644 --- a/src/Query.tsx +++ b/src/Query.tsx @@ -31,7 +31,6 @@ WHERE { OPTIONAL { ?contact ng:site ?public_profile . ?contact ng:site_inbox ?public_inbox } OPTIONAL { ?contact ng:protected ?protected_profile . ?contact ng:protected_inbox ?prot_inbox } ?contact xskills:hasRating [ - a xskills:Rating ; xskills:rated ?level; xskills:skill ?skill ].