Examples from the lectures: Difference between revisions

From info216
No edit summary
 
Line 15: Line 15:
</syntaxhighlight>
</syntaxhighlight>


<!--
==Lecture 2: RDF==
==Lecture 2: RDF==
Blank nodes for anonymity, or when we have not decided on a URI:
Blank nodes for anonymity, or when we have not decided on a URI:
Line 674: Line 675:
vector_neighbours(embeddings['oslo'] - embeddings['norway'] + embeddings['france'])
vector_neighbours(embeddings['oslo'] - embeddings['norway'] + embeddings['france'])
</syntaxhighlight>
</syntaxhighlight>
-->

Latest revision as of 10:54, 20 January 2025

This page currently shows the examples used in the Spring of 2023. It will be updated with examples from 2024 as the course progresses.

Lecture 1: Introduction to KGs

Turtle example:

@prefix ex: <http://example.org/> .
ex:Roger_Stone
    ex:name "Roger Stone" ;
    ex:occupation ex:lobbyist ;
    ex:significant_person ex:Donald_Trump .
ex:Donald_Trump
    ex:name "Donald Trump" .