fix query (remove a xskills:Rating)

main
Niko PLP 1 week ago
parent 8ee54f9a39
commit 8b9c11b89e
  1. 1
      README.md
  2. 6
      src/.shapes/contact.shex
  3. 1
      src/Contact.tsx
  4. 1
      src/Query.tsx

@ -18,6 +18,7 @@ This is the final working version.
``` ```
npm install npm install
npm run build:ldo
npm run dev npm run dev
``` ```

@ -25,8 +25,8 @@ ngc:SocialContact EXTRA a {
} }
ngc:HasRating { ngc:HasRating {
a [ xskills:Rating ]; a [ xskills:Rating ] ;
xskills:rated xsd:integer; xskills:rated xsd:integer;
xskills:skill [ ksp:svelte ksp:nextjs ksp:react ksp:vuejs ksp:tailwind xskills:skill [ ksp:svelte ksp:nextjs ksp:react ksp:vuejs ksp:tailwind
ksp:rdf ksp:rust ksp:yjs ksp:automerge ] ksp:rdf ksp:rust ksp:yjs ksp:automerge ]
} }

@ -68,6 +68,7 @@ export const Contact: FunctionComponent = ({nuri}) => {
let re = getResource(nuri); let re = getResource(nuri);
let editing_contact = changeData(contact, re); let editing_contact = changeData(contact, re);
editing_contact.hasRating.add({ editing_contact.hasRating.add({
type : { "@id": "Rating" },
rated: rating-1, rated: rating-1,
skill: { skill: {
"@id": ksp + ksp_mapping[skill] "@id": ksp + ksp_mapping[skill]

@ -31,7 +31,6 @@ WHERE {
OPTIONAL { ?contact ng:site ?public_profile . ?contact ng:site_inbox ?public_inbox } OPTIONAL { ?contact ng:site ?public_profile . ?contact ng:site_inbox ?public_inbox }
OPTIONAL { ?contact ng:protected ?protected_profile . ?contact ng:protected_inbox ?prot_inbox } OPTIONAL { ?contact ng:protected ?protected_profile . ?contact ng:protected_inbox ?prot_inbox }
?contact xskills:hasRating [ ?contact xskills:hasRating [
a xskills:Rating ;
xskills:rated ?level; xskills:rated ?level;
xskills:skill ?skill xskills:skill ?skill
]. ].

Loading…
Cancel
Save