skos – shuttleskos shuttle foresees two variants of rdf import: 1) import merge – this is the...
TRANSCRIPT
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
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
SKOS Shuttle RDF Exports / Imports Tutorial
SemwebLLCCopyright2016–2019Allrightsreserved 3
Picture2:Exportdialog
Selectintheexportdialogtheformatyouareinterestedinandpress“Export”.SKOSShuttlewillstartadownloadintoyourpredefinedplace(dependingonyourbrowsersettings).Storethedownloadintoagoodplaceonyourfilesystem.Youwillneeditlater.ThecontentofthefileSKOSShuttlegeneratedduringthisexportisdepictedinpicture3.
SKOS Shuttle RDF Exports / Imports Tutorial
SemwebLLCCopyright2016–2019Allrightsreserved 4
Picture3:Contentoftheexport
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.)
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
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.
SKOS Shuttle RDF Exports / Imports Tutorial
SemwebLLCCopyright2016–2019Allrightsreserved 8
Congratulations!Youaredone–inthistutorialyoulearnedhowtodownloadoruploadRDFdatafrom/toyourthesaurusrepository.Questions?Improvements?Justcontactus–https://ch.semweb.ch/en-contactoronhttps://skosshuttle.ch