Skip to content

Commit d2310d4

Browse files
entrega_4_irenecerezo
1 parent b00c270 commit d2310d4

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

Assignment4/irene_cerezo_24C041/task06.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545
# TO DO
4646
# Visualize the results
47-
ns2 = Namespace("http://oeg-fi.upm.es/def/people#")
47+
ns2 = Namespace("http://oeg.fi.upm.es/def/people#")
4848
g.remove((None, None, None))
4949
Person=ns2.Person
5050
g.add((Person, RDF.type, RDFS.Class))
@@ -53,7 +53,7 @@
5353
g.add((Professor, RDF.type, RDFS.Class))
5454
g.add((Professor, RDFS.subClassOf, Person))
5555
g.add((Professor, RDFS.label, Literal("Professor", datatype=XSD.string)))
56-
FullProfessor=ns2.Professor
56+
FullProfessor=ns2.FullProfessor
5757
g.add((FullProfessor, RDF.type, RDFS.Class))
5858
g.add((FullProfessor, RDFS.subClassOf, Professor))
5959
g.add((FullProfessor, RDFS.label, Literal("FullProfessor", datatype=XSD.string)))
@@ -100,8 +100,6 @@
100100

101101
"""**TASK 6.3: Create the individuals shown in slide 36 under "Datos". Link them with the same relationships shown in the diagram."**"""
102102

103-
# TO DO
104-
# Visualize the results
105103
resource=Namespace("http://oeg.fi.upm.es/resource/person/")
106104

107105
g.add((resource.Oscar, RDF.type, AssociateProfessor))

0 commit comments

Comments
 (0)