djefts / SemanticSecurity

Leveraging Web User Analysis through Ontologies to Intelligently Generate Reliable Security Questions
3 stars 0 forks source link

Represent Educational Achievements Within the Knowledge Graph #31

Open djefts opened 3 years ago

djefts commented 3 years ago

Scraped information that isn't represented in the Knowledge Graph by FOAF or SIOC

EDU = Namespace('https://schema.org/EducationalOccupationalCredential')  # education credentials namespace
knowledge_graph.bind('edu', EDU)

for i in range(user.degrees):
    degree = user.degrees[i]
    school = user.schools[i]
    entities_to_rdf.add_diploma(knowledge_graph, degree, school)