Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ISCO: support essentialSkills and optionalSkills #19

Open
ioggstream opened this issue Mar 28, 2024 · 2 comments
Open

ISCO: support essentialSkills and optionalSkills #19

ioggstream opened this issue Mar 28, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@ioggstream
Copy link
Contributor

ioggstream commented Mar 28, 2024

When I

Execute this code

import esco

db = esco.LocalDB()
occupations = esco.load_occupations()
occupations.optionalSkills

I expect

  • no errors
  • a list of a comma-separated optionalSkills

Instead

  • only occupations.skills are present
  • they only refer to essentialSkills
@ioggstream ioggstream added the enhancement New feature or request label Mar 28, 2024
@Edocampa
Copy link
Collaborator

Edocampa commented Apr 10, 2024

Roberto ho modificato la query precedente inserendo nel risultato anche le skill essenziali per quella determinata occupazione, inoltre ho eliminato i filtri per la lingua inglese in modo da farmi restituire tutte le possibili skill (opzionali e esseniali) di cui l'occupazione necessita. Ho inserito il LIMIT 10 perché altrimenti mi diceva che ci voleva troppo tempo e non mi stampava nulla. Aspetto un tuo feedback.

prefix skos:  <http://www.w3.org/2004/02/skos/core#>
prefix esco:  <http://data.europa.eu/esco/model#>

SELECT DISTINCT ?occupation ?skillOpzionale ?skillEssenziale
WHERE {
  ?o a esco:Occupation ;
    esco:relatedOptionalSkill ?skillOpzionale ;
    esco:relatedEssentialSkill ?skillEssenziale ;
    skos:prefLabel ?occupation .
    


  ?skillOpzionale skos:prefLabel ?labelOpzionale .
  ?skillEssenziale skos:prefLabel ?labelEssenziale .
}

LIMIT 10

@ioggstream
Copy link
Contributor Author

This query is limited to optional skills.

You need to retrieve both optional and essential skills ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

2 participants