> For the complete documentation index, see [llms.txt](https://krke24.gitbook.io/krke-project-2023-2024/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://krke24.gitbook.io/krke-project-2023-2024/4.-knowledge-representation/4.2-first-level-modelling/4.2.2-competency-questions.md).

# 4.2.2 Competency Questions

For the selected scenario, "Skater Community," we derived the following Competency Questions. These CQs have subsequently guided the development of corresponding [SPARQL](https://www.w3.org/TR/sparql11-query/) queries, ensuring they address the specific informational needs identified in the scenario analysis.&#x20;

{% hint style="warning" %}
N.B. The prefixes to be added to each query are the folowing ones.
{% endhint %}

{% code fullWidth="false" %}

```sparql
PREFIX youth: <http://www.semanticweb.org/ontologies/2024/YOUTH/>
PREFIX persp: <http://www.ontologydesignpatterns.org/ont/persp/perspectivisation.owl#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xml: <http://www.w3.org/XML/1998/namespace>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
```

{% endcode %}

**What are the characteristics of the skaters youth subculture?**

SPARQL Query:

{% code fullWidth="false" %}

```sparql
SELECT ?fashionStyle ?musicGenre ?ritual ?location ?historicalPeriod
WHERE {
youth:skaters a youth:YouthSubculture ;
youth:hasFashionStyle ?fashionStyle ;
youth:hasMusicGenre ?musicGenre ;
youth:hasRitual ?ritual ;
youth:locatedIn ?location ;
youth:originatedIn ?historicalPeriod .
  }
```

{% endcode %}

**What core values are associated with the skaters subculture?**

SPARQL Query:

```sparql
SELECT ?MoralValue
WHERE {
  youth:skaters youth:hasMoralValue ?MoralValue .
}
```

**What activities do skater community members typically engage in?**

SPARQL Query:

```sparql
SELECT ?ritual ?content
WHERE {
  youth:skaters youth:hasRitual ?ritual .
?ritual youth:hasContent ?content .
}
```

**Which individuals are part of the skaters subculture?**

SPARQL Query:

```sparql
SELECT ?participant
WHERE {
  youth:skaters youth:hasParticipant ?participant .
}
```

**Where did the skaters subculture originated from?**

SPARQL Query:

```sparql
SELECT ?location
WHERE {
  youth:skaters youth:locatedIn ?location .
}
```

#### During which time period did the skater subculture originate?

SPARQL Query:

```sparql
SELECT ?historicalPeriod
WHERE {
  youth:skaters youth:originatedIn ?historicalPeriod .
}
```

These queries extract relevant information about the skater subculture, covering aspects such as values, activities, slang, influence, media, and other associated details.

{% hint style="warning" %}
To visualize the content of entities such as`Ritual`, `FashionStyle`,`MusicGenre`you need to include the data property <mark style="color:green;">`hasContent`</mark> in the query.

*ex:* ?ritual youth:hasContent ?content
{% endhint %}
