Semantic Web and Knowledge Graph Experiment Manual Experiment 1

tags: Knowledge Graph

"Semantic Web and Knowledge Graph" Experimental Manual

Experiment 1 RDF (RDFS) application
purpose:
(1) Understand the semantic web resource description language;
(2) Master the use of RDF(S).

content:
[Exercise 1] Consider the following RDF document:
<rdf:RDF
xmlns:rdf=“http://www.w3.org/1999/02/22-rdf-syntax-ns#”
xmlns:rdfs=“http://www.w3.org/2000/01/rdf-schema#”
xmlns:iswww=“http://sw.edu/#”

<rdf:Description rdf:about=“http://sw.edu/#germany”>
<rdf:type rdf:resource=“http://sw.edu/#country” />
</rdf:Description>
<rdf:Description rdf:about=“http://sw.edu/#capital_of”>
<rdf:type rdf:resource=“http://www.w3.org/1999/02/22-rdf-syntax-ns#Property”/>
<rdfs:domain rdf:resource=“http://sw.edu/#city” />
<rdfs:range rdf:resource=“http://sw.edu/#country” />
</rdf:Description>
<rdf:Description rdf:about=“http://sw.edu/#country”>
<rdf:type rdf:resource=“http://www.w3.org/2000/01/rdf-schema#Class” />
<rdfs:label xml:lang=“de”>Land</rdfs:label>
</rdf:Description>
<rdf:Description rdf:about=“http://sw.edu/#berlin”>
<rdfs:label xml:lang=“en”>Berlin</rdfs:label>
<rdf:type rdf:resource=“http://sw.edu/#city” />
<iswww:capital_of rdf:resource=“http://sw.edu/#germany” />
</rdf:Description>
<rdf:Description rdf:about=“http://sw.edu/#city”>
<rdf:type rdf:resource=“http://www.w3.org/2000/01/rdf-schema#Class” />
<rdfs:label xml:lang=“de”>Stadt</rdfs:label>
</rdf:Description>
</rdf:RDF>
• Describe in natural language the content of this document.
• Draw the graph representation of the above document.

  1. germany is country
    capital_of is an attribute of city and the value of country.
    country is called land in German
    berlin is Berlin in English, a city in Germany
    berlin is called Stadt in German

 [Exercise 2] Write down the modeled list authors of this book from following RDF graph in Turtle syntax.
 Hitzler
Krotzsch
Rudolph
[Exercise 3] Write the following Turtle triple in RDF/XML syntax:
:Person rdfs:comment “Represents the set of all people.”^^xsd:string .

<?xml version="1.0"?>

<rdf:RDF xmlns:rdf=“http://www.w3.org/1999/02/22-rdf-syntax-ns#”
xmlns:rdfs=“http://www.w3.org/2000/01/rdf-schema#”>
<rdf:Description rdf:about=“http://Person”>
<rdfs:comment rdf:datatype=“http://www.w3.org/2001/XMLSchema#string”>
Represents the set of all people
</rdfs:comment>
</rdf:Description>
</rdf:RDF>
【Exercise 4】 Represent the following sentences graphically by means of reified triples:
 Romeo thought that Juliet was dead.
 John believes that Mary wants to marry him.
 The dwarf noticed that somebody had been eating from his plate.

Intelligent Recommendation

JavaCC Semantic Analysis Experiment

Article catalog JavaCC Semantic Analysis Experiment First, the experimental purpose: Second, MiniC syntax (grammatics 1, 2, the two choose one of its implementation) Experiment process Source Fourth, ...

Semantic analysis experiment

Content: Design and implement syntax semantic analysis procedures with multiple simple assignment statements, requiring recursive drop translation. Source code: Test file: begin aa:=2+3564; x:=(a+b)/c...

【Experiment】 Semantic segmentation-dataset

Write a directory title here refer to data set VOC 2012 data set component Pre -processing data Summarize Code refer to videoLi Mu-Semantic Syllabus and Data Collection 【Should Learn Deep Learning V2】...

1. IPv6 transition technology - manual tunnel experiment

First, 6TO4 manual tunnel If a boundary device is to establish a manual tunnel with multiple devices, you need to configure multiple tunnels on the device, configuring trouble. So the manual tunnel is...

More Recommendation

Experiment 1: Web client programming

** Purpose: ** Using HTML hypertext markup language to make simple pages requires experiments to be able to master the basic structure of HTML files and the creation, editing and saving of documents. ...

web experiment 1 div+css

web experiment 1 div+css Multiple pages jump to each other to see pictures, play music, etc. Home My Anime Click on Chrysanthemum station will play mv online play jump Visitor interface My Profile Pho...

Experiment 1 Web client programming

1. The purpose and requirements of the experiment The use of HTML hypertext markup language to produce simple pages requires experiments to be able to master the basic structure of HTML files and the ...

Ontology modeling and semantic Web knowledge discovery 1

Chapter 1 Intelligent Search and Knowledge Discovery Based on Semantic Web The Semantic Web is not another Web, it is an extension of the existing Web, where information is given a good definition. Th...

Introduction to the Semantic Web, common knowledge graph application scenarios

Introduction to Knowledge Graph and Application Scenarios Knowledge GraphIt was first proposed by Google, and it can be calledSemantic Web, Used to describe various entities or concepts and their rela...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top