fix query (remove a xskills:Rating)

main
Niko PLP 1 week ago
parent 8ee54f9a39
commit 8b9c11b89e
  1. 1
      README.md
  2. 2
      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 run build:ldo
npm run dev
```

@ -25,7 +25,7 @@ ngc:SocialContact EXTRA a {
}
ngc:HasRating {
a [ xskills:Rating ];
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 ]

@ -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]

@ -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
].

Loading…
Cancel
Save