skos – shuttleskos shuttle foresees two variants of rdf import: 1) import merge – this is the...

8
SKOS Shuttle RDF Exports / Imports Tutorial Semweb LLC Copyright 2016 – 2019 All rights reserved 1 SKOS – Shuttle (Welcome) Tutorial „RDF Exports & Imports“ August 2017 In this tutorial you will learn how to export / import RDF data from / into a thesaurus. We will make reference to the tiny thesaurus “GEO Places” inside the project “GEOPLACES” of the “Hello-World” tutorial Table of Contents EXPORT CONCEPT SUBTREE ................................................................................................................................ 2 IMPORTING RDF ................................................................................................................................................. 5 RDF IMPORT MERGE .......................................................................................................................................... 5 RDF IMPORT REPLACE ........................................................................................................................................ 7

Upload: others

Post on 14-Mar-2020

10 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: SKOS – ShuttleSKOS Shuttle foresees two variants of RDF import: 1) Import merge – this is the normal RDF import, where statements are simply merged 2) Import replace – this is

SKOS Shuttle RDF Exports / Imports Tutorial

SemwebLLCCopyright2016–2019Allrightsreserved 1

SKOS–Shuttle

(Welcome)

Tutorial„RDFExports&Imports“

August2017

Inthistutorialyouwilllearnhowtoexport/importRDFdatafrom/intoathesaurus.

Wewillmakereferencetothetinythesaurus“GEOPlaces”

insidetheproject“GEOPLACES”ofthe“Hello-World”tutorial

TableofContentsEXPORTCONCEPTSUBTREE................................................................................................................................2IMPORTINGRDF.................................................................................................................................................5RDFIMPORTMERGE..........................................................................................................................................5RDFIMPORTREPLACE........................................................................................................................................7

Page 2: SKOS – ShuttleSKOS Shuttle foresees two variants of RDF import: 1) Import merge – this is the normal RDF import, where statements are simply merged 2) Import replace – this is

SKOS Shuttle RDF Exports / Imports Tutorial

SemwebLLCCopyright2016–2019Allrightsreserved 2

Inthistutorialwewillspeakofdownload=exportandofupload=importassynonyms.LogintoSKOSShuttleandnavigatetotheconcept“CITIES”ofyourGEOPLACESthesaurus(picture1)

Picture1:SKOSdetailofconcept“CITIES”

EXPORTCONCEPTSUBTREE

Onyourconceptpagepresstheicon fromthegrayapplicationbar.SKOSShuttleshowsanexportdialog(picture1)whichinformsyouontheconsequencesofthisactionandleadsyoutotheimport.InSKOSShuttleyoucanexportyourRDFDatainsixRDFformats:

N3NTRIPLESNQUADSTURTLETRIG

XMLRDF

Page 3: SKOS – ShuttleSKOS Shuttle foresees two variants of RDF import: 1) Import merge – this is the normal RDF import, where statements are simply merged 2) Import replace – this is

SKOS Shuttle RDF Exports / Imports Tutorial

SemwebLLCCopyright2016–2019Allrightsreserved 3

Picture2:Exportdialog

Selectintheexportdialogtheformatyouareinterestedinandpress“Export”.SKOSShuttlewillstartadownloadintoyourpredefinedplace(dependingonyourbrowsersettings).Storethedownloadintoagoodplaceonyourfilesystem.Youwillneeditlater.ThecontentofthefileSKOSShuttlegeneratedduringthisexportisdepictedinpicture3.

Page 4: SKOS – ShuttleSKOS Shuttle foresees two variants of RDF import: 1) Import merge – this is the normal RDF import, where statements are simply merged 2) Import replace – this is

SKOS Shuttle RDF Exports / Imports Tutorial

SemwebLLCCopyright2016–2019Allrightsreserved 4

Picture3:Contentoftheexport

Page 5: SKOS – ShuttleSKOS Shuttle foresees two variants of RDF import: 1) Import merge – this is the normal RDF import, where statements are simply merged 2) Import replace – this is

SKOS Shuttle RDF Exports / Imports Tutorial

SemwebLLCCopyright2016–2019Allrightsreserved 5

IMPORTINGRDFImportingRDFdatainvolvesintroducingRDFmaterialintotheRDFrepositorycontainingyourthesaurus.Attheendoftheimportyoushouldhavemorestatementsasbefore.AfurtherconsequenceofimportingRDFdataistheinvalidationofthecachedlanguagetrack.SKOSShuttlewillleadyouthroughthenecessarystepsinordertocorrectlyimportanRDFfile.SKOSShuttleforeseestwovariantsofRDFimport:

1) Importmerge–thisisthenormalRDFimport,wherestatementsaresimplymerged2) Importreplace–thisisaspecialactionwherebeforetheimportaconceptsubtreeisdeleted

CAUTION:Importingmightconsiderablychangeyourthesaurus.Wesuggesttotakeasnapshotofthethesaurusbeforeeachimport!RDFIMPORTMERGE

Youvisualizetheconcept“CITIES”andpresstheicon fromthegrayapplicationbarwiththelabel“import/mergeRDF”.SKOSShuttlevisualizetheimportdialog(picture4a).

Picture4a:RDFimport/mergedialog

WiththeRDFimportthelanguagetrackwillbeinvalidated.PleasedecidewhetheraftertheimportoperationSKOSShuttlewillhavetorecomputethelanguagetrack(thelattermightbealittletimeconsuming:1-2minuteseachmillionstatementsinthethesaurus.)

Page 6: SKOS – ShuttleSKOS Shuttle foresees two variants of RDF import: 1) Import merge – this is the normal RDF import, where statements are simply merged 2) Import replace – this is

SKOS Shuttle RDF Exports / Imports Tutorial

SemwebLLCCopyright2016–2019Allrightsreserved 6

Next,locatetheRDFfileyouwishtoupload(picture4b)andpresstheorangebuttontouploadthequalifiedfiletoSKOSShuttle.

Picture4b:RDFimport/mergedialogwithqualifiedRDFfile

Aftersuccessfulfileupload,the“import”buttongetsorange(picture4c).

Picture4c:RDFimport/mergedialogwithready-to-importbutton

Page 7: SKOS – ShuttleSKOS Shuttle foresees two variants of RDF import: 1) Import merge – this is the normal RDF import, where statements are simply merged 2) Import replace – this is

SKOS Shuttle RDF Exports / Imports Tutorial

SemwebLLCCopyright2016–2019Allrightsreserved 7

Pressingthe“import”buttonwillcauseSKOSShuttletoimporttheRDFdatafromyouuploadedfile.Pleaseexaminethecontentyouhaveuploadedandrecoverwithasnapshotifyoufeelitisnotwhatyouwanted.RDFIMPORTREPLACE“RDFImport/replace”issubstantiallythesameoperationas“RDFimport/merge”withonesubstantialdifference:BeforetheRDFmaterialisimported,thesubtreeoftheconceptwillbedeleted.

Startan“RDFimport/replace”bypressingtheicon fromthegrayapplicationbar.Animportdialogwillappear(picture4d).

Picture4d:RDFimport/replacedialog

Alsowith“RDFimport/replace”thelanguagetrackwillbeinvalidated.PleasedecidewhethertoletSKOSShuttlerecomputeitafterimportbycheckingtheappropriatecheckboxandfollowthesamestepsasinthepreviousparagraph“RDFimport/replace”.Pleaseexaminethecontentyouhaveuploadedundertheconceptsubtreeandrecoverwithasnapshotifyoufeelitisnotwhatyouwanted.

Page 8: SKOS – ShuttleSKOS Shuttle foresees two variants of RDF import: 1) Import merge – this is the normal RDF import, where statements are simply merged 2) Import replace – this is

SKOS Shuttle RDF Exports / Imports Tutorial

SemwebLLCCopyright2016–2019Allrightsreserved 8

Congratulations!Youaredone–inthistutorialyoulearnedhowtodownloadoruploadRDFdatafrom/toyourthesaurusrepository.Questions?Improvements?Justcontactus–https://ch.semweb.ch/en-contactoronhttps://skosshuttle.ch