Skip to content
Snippets Groups Projects
Commit f870474d authored by Eliott Sammier's avatar Eliott Sammier
Browse files

Rename Page to Activite

parent ba6acb34
No related branches found
No related tags found
No related merge requests found
......@@ -51,10 +51,10 @@
### http://www.semanticweb.org/eliott/ontologies/2024/4/macao/contientPage
:contientPage rdf:type owl:ObjectProperty ;
:contientActivite rdf:type owl:ObjectProperty ;
rdfs:subPropertyOf :contient ;
rdfs:domain :SousPartie ;
rdfs:range :Page .
rdfs:range :Activite .
### http://www.semanticweb.org/eliott/ontologies/2024/4/macao/contientSousPartie
......@@ -68,12 +68,12 @@
:incluseDans rdf:type owl:ObjectProperty ;
owl:inverseOf :inclutRessource ;
rdfs:domain :MacaoRessource ;
rdfs:range :Page .
rdfs:range :Activite .
### http://www.semanticweb.org/eliott/ontologies/2024/4/macao/inclutRessource
:inclutRessource rdf:type owl:ObjectProperty ;
rdfs:domain :Page ;
rdfs:domain :Activite ;
rdfs:range :MacaoRessource .
......@@ -89,19 +89,19 @@
### http://www.semanticweb.org/eliott/ontologies/2024/4/macao/commentaireInfo
:commentaireInfo rdf:type owl:DatatypeProperty ;
rdfs:domain :Page ;
rdfs:domain :Activite ;
rdfs:range rdf:XMLLiteral .
### http://www.semanticweb.org/eliott/ontologies/2024/4/macao/commentaireSucces
:commentaireSucces rdf:type owl:DatatypeProperty ;
rdfs:domain :Page ;
rdfs:domain :Activite ;
rdfs:range rdf:XMLLiteral .
### http://www.semanticweb.org/eliott/ontologies/2024/4/macao/commentaireSugg
:commentaireSugg rdf:type owl:DatatypeProperty ;
rdfs:domain :Page ;
rdfs:domain :Activite ;
rdfs:range rdf:XMLLiteral .
......@@ -136,12 +136,12 @@
### http://www.semanticweb.org/eliott/ontologies/2024/4/macao/Cours
:Cours rdf:type owl:Class ;
rdfs:subClassOf :Page .
rdfs:subClassOf :Activite .
### http://www.semanticweb.org/eliott/ontologies/2024/4/macao/Exercice
:Exercice rdf:type owl:Class ;
rdfs:subClassOf :Page .
rdfs:subClassOf :Activite .
### http://www.semanticweb.org/eliott/ontologies/2024/4/macao/ExerciceGD
......@@ -208,7 +208,7 @@
### http://www.semanticweb.org/eliott/ontologies/2024/4/macao/Page
:Page rdf:type owl:Class ;
:Activite rdf:type owl:Class ;
rdfs:subClassOf :MacaoContenu .
......
This diff is collapsed.
This diff is collapsed.
......@@ -25,7 +25,7 @@ def generate_triples(
page = NS[page_id]
# Type and simple properties
graph.add((page, RDF.type, OWL.NamedIndividual))
graph.add((page, RDF.type, NS["Page"]))
graph.add((page, RDF.type, NS["Activite"]))
graph.add((page, NS["id"], Literal(page_id)))
set_title(graph, page, page_title)
add_index(
......@@ -35,7 +35,7 @@ def generate_triples(
)
# Link with parent subsection
graph.add((page, RDFS.subClassOf, mosetp))
graph.add((mosetp, NS["contientPage"], page))
graph.add((mosetp, NS["contientActivite"], page))
def parse_mosetp(graph: Graph, filepath: str, id: str):
......
......@@ -25,7 +25,7 @@ title = "%s"
st:call-template(mt:quiz, ?subj)
}
where {
?subj a :Page .
?subj a :Activite .
?subj :id ?id .
?subj :titre ?title .
?subj :description ?desc
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment