Overview

This article explains the process of converting data created with Microsoft Visio to RDF format, and the method for adding RDF data when a specific URI (in this case, a Japan Search URI containing information about Katsushika Hokusai) is specified. We introduce techniques for handling Visio data in RDF format through the conversion process, and present the results of incorporating information about Katsushika Hokusai as a concrete example.

Background

In the following article, I introduced an example of converting data created with Microsoft Visio to RDF:

/en/posts/e2b8920abbaf88/

This time, I added a process to include additional RDF data when a URI is specified. Here are some notes on this.

Sample Data

In this example, we specify the URI of Katsushika Hokusai published on Japan Search.

Processing Results

The converted TTL file looks as follows:

@prefix ex: <http://example.org/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix ns1: <http://schema.org/> .
@prefix ns2: <http://www.w3.org/2003/06/sw-vocab-status/ns#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

foaf:Person a rdfs:Class,
        owl:Class ;
    rdfs:label "Person" ;
    rdfs:comment "A person." ;
    rdfs:isDefinedBy foaf: ;
    rdfs:subClassOf <http://www.w3.org/2003/01/geo/wgs84_pos#SpatialThing>,
        foaf:Agent ;
    owl:disjointWith foaf:Organization,
        foaf:Project ;
    owl:equivalentClass ns1:Person,
        <http://www.w3.org/2000/10/swap/pim/contact#Person> ;
    ns2:term_status "stable" .

ex:BOB ex:knows ex:Alice ;
    ex:type foaf:Person ;
    foaf:topic_interest <https://jpsearch.go.jp/entity/chname/่‘›้ฃพๅŒ—ๆ–Ž> .

<https://jpsearch.go.jp/entity/chname/่‘›้ฃพๅŒ—ๆ–Ž> a <https://jpsearch.go.jp/term/type/Agent>,
        <https://jpsearch.go.jp/term/type/Person> ;
    rdfs:label "่‘›้ฃพๅŒ—ๆ–Ž" ;
    ns1:birthDate <https://jpsearch.go.jp/entity/time/1760> ;
    ns1:deathDate <https://jpsearch.go.jp/entity/time/1849> ;
    ns1:description "1760?-1849, ๆฑŸๆˆธๆ™‚ไปฃๅพŒๆœŸใฎๆตฎไธ–็ตตๅธซใ€‚ๅง“ใฏๅทๆ‘ๆฐใ€ๅนผๅใฏๆ™‚ๅคช้ƒŽใ€ใฎใก้‰„่”ตใ€‚้€š็งฐใฏไธญๅณถๅ…ซๅณ่ก›้–€ใ€‚ๅทใฏๅ‹ๅทๆ˜ฅๆœ—ใ€ๅฎ—็†ใ€ๆˆดๆ–—ใ€็‚บไธ€ใ€็”ป็‹‚่€ไบบใ€ๅใชใฉใ€‚" ;
    ns1:image <https://commons.wikimedia.org/wiki/Special:FilePath/Hokusai_portrait_whiteBackground.png?width=350> ;
    ns1:name "Katsushika, Hokusai"@en,
        "ใ‹ใคใ—ใ‹ๅŒ—ๆ–Ž"@ja,
        "ๅ‰ๅŒ—ๆ–Ž"@ja,
        "ๅ‰ๅŒ—ๆ–Žๅ"@ja,
        "ๅ‰ๅŒ—ๆ–Ž็‚บไธ€"@ja,
        "ๅ‰ๅŒ—ๆ–Ž็‚บไธ€่€ไบบ"@ja,
        "ๅ‹ๅทๆ˜ฅๆœ—"@ja,
        "ๅŒ—ๆ–‰"@ja,
        "ๅŒ—ๆ–‰่ผ‰ๆ–—ๆ”น่‘›้ฃพ็‚บไธ€"@ja,
        "ๅŒ—ๆ–Ž"@ja,
        "ๅŒ—ๆ–Žไธปไบบ"@ja,
        "ๅŒ—ๆ–Žๅฎ—็†"@ja,
        "ๅŒ—ๆ–Ž็‚บไธ€ๅ"@ja,
        "็”ป็‹‚ไบบๅŒ—ๆ–Ž"@ja,
        "่‘›้ฃพๅŒ—ๆ–Ž"@ja,
        "่‘›้ฃพๅ่€ไบบ"@ja,
        "ใ‹ใคใ—ใ‹ ใปใใ•ใ„"@ja-hira,
        "ใ‚ซใƒ„ใ‚ทใ‚ซ ใƒ›ใ‚ฏใ‚ตใ‚ค"@ja-kana ;
    ns1:subjectOf <https://jpsearch.go.jp/data/nij15-nijl_nijl_nijl_kotengakutougouhyakka_hagajinmeijiten_00029172> ;
    ns1:url <https://jpsearch.go.jp/gallery/ndl-xbzl6VVOpkhjzlg> ;
    rdfs:isDefinedBy <https://jpsearch.go.jp/entity/chname/> ;
    owl:sameAs <http://collection.britishmuseum.org/id/person-institution/1820>,
        <http://data.bnf.fr/ark:/12148/cb124954814#about>,
        <http://dbpedia.org/resource/Hokusai>,
        <http://edan.si.edu/saam/id/person-institution/2267>,
        <http://id.ndl.go.jp/auth/entity/00270331>,
        <http://ja.dbpedia.org/resource/่‘›้ฃพๅŒ—ๆ–Ž>,
        <http://lod.ac/id/1626>,
        <http://viaf.org/viaf/69033717>,
        <http://www.wikidata.org/entity/Q5586> .

The data without RDF data added via URI is shown below. By comparing with the above, you can confirm that data about foaf:Person and Katsushika Hokusai has been added.

@prefix ex: <http://example.org/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .

ex:BOB ex:knows ex:Alice ;
    ex:type foaf:Person ;
    foaf:topic_interest <https://jpsearch.go.jp/entity/chname/่‘›้ฃพๅŒ—ๆ–Ž> .

Visualization Results

The visualization results of the above TTL file are shown below:

A partially enlarged view is shown below:

You can confirm that the data is connected via URIs.

Summary

For more information about retrieving RDF data from URIs, please refer to the following:

/en/posts/64181175703f99/

I hope this serves as a useful reference.