a Semantic Web Representation

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

1UppsalaMaster’sThesisinComputerScience3122007-08-17ISSN1100-1836ArchivingRelationalDatabasesusingaSemanticWebRepresentationSantoshKumarReddyMaddulaInformationTechnologyComputerScienceDepartmentUppsalaUniversityBox337S-75105UppsalaSwedenSupervisor:SilviaStefanovaExaminer:ToreRisch2AbstractAdatabaseindependentmigrationtoolisdevelopedforlongtermarchivalofrelationaldatabases.TheapproachistorepresentbothschemaanddataofanexistingrelationaldatabaseinanRDF-Schemabasedrepresentation.RDF-Schemaisasemanticwebstandardforrepresentinganykindofdataandmeta-data.Thesystem,SARD,canautomaticallyconvertdatafromanexistingrelationaldatabaseintoanRDF-SchemabasedflatfilerepresentationthroughitsRelationalRDF-archivermodule.LaterSARDcanrecreatethearchiveddatainanotherrelationaldatabasebyaRelationalRDF-loadermodule.Standardrelationaldatabaseinterfaces,thequerylanguageSQL,andRDf_SchemaareusedtomakethemigrationDBMSindependent.Aproof-of-conceptimplementationshowstheviabilityoftheapproachforsimplerelationaldatabases.3TableofContents1Introduction2Background2.1SemanticWebandRDF2.2AmosII2.3SWARD3TheSARDsystem3.1UsageExample3.2Implementation3.2.1TheRDF-Archiver3.2.2TheRDF-Loader4ConclusionandFutureWork41IntroductionRelationaldatabasesareextensivelyusedforstoringinformation.Inmanycaseslongtimearchivalandrestoringthedatainrelationaldatabasesisofprimeimportance.EachDBMSvendorprovidestoolsforarchivalandrestorationofthevendor’srelationaldatabases.However,thesetoolsareonlystandardizedformigratingrelationaldatabetweendifferentversionsofthedatabaseofthesamevendor.Thisisproblematicwhenmigratingdataofarelationaldatabasefromonevendor'sdatabasetoanothervendor.ChangingDBMSvendorrequiresunloadingthedataintoasequentialfileandthenreloadedthefileintoanewdatabase.ThisrequiresthatthesequentialunloadformatisDBMSvendorindependentandsuchastandardforarchivingrelationaldatabasesisnotdefined.Furthermore,forlongtermstorageofrelationaldatabasesbeyondthelifetimeofaDBMSproductitisdesiredtohavethearchiveddatastoredinadatabaseindependentformat.Oneofthegoalswiththesemanticwebinitiativeistoprovideschemadescriptions,calledontologies,fordifferentkindsofwebresources.Metadataandontologiesplaymajorrolesforretrievingandcombininginformationfromdifferentsources.RDFandRDF-SchemaaretheW3Cstandardsfordescribingtheinformationusedinthesemanticweb.RDFallowsannotationofwebresources(e.g.URLs)withpropertiesandpropertyvalues.WhileRDFallowstoassociateanypropertywithanywebresources,theextendedlanguageRDF-Schema[1]isusedtodefineschemasofwebresources.WithRDF-Schemastandardizedproperties,i.e.ontologies,aredefinedfordifferentapplicationdomain.Theyaresimilartorelationaldatabaseschemas.Thepurposeofthisprojectistoimplementasystem,SARD(SemanticWebArchivalofRelationalDatabases),todemonstratesemanticwebbasedarchivingandloadingofrelationaldatabases.SARDcanarchivethedataofarelationaldatabaseintoastandardizedsequentialfileandlaterloadbackthearchiveddataintoanotherrelationaldatabase.Thefollowingisdeveloped:1.AnRDFschemarepresentationisdefinedthatcanrepresentbothschemaandcontentsofarelationaldatabase.2.AnRDF-archivermoduleisdevelopedthatgeneratestheRDF-schemarepresentationofagivenrelationaldatabase.53.AnRDF-loadermodulereloadsanarchivedrelationaldatabasetorecreatetheoriginalrelationaldatabase.TheimplementationofSARDutilizestheSWARDsystem[13].SWARDallowstheusertoviewthecontentsofarelationaldatabaseasRDF-Schema,givenspecificationofmappingsbetweenthedatabaseschemaandtheRDF-Schemaontology.TheRDF-archiverusesSWARDforextractingalldatastoredintherelationaldatabaseasaquerytoSWARD’sRDFviewoftherelationaldatabase.ThequeryextractsalldataaccordingtoaSARDontology.TheRDF-loaderusestheRDFAmossystem[2]toparseanRDF-SchemadocumentandthenapplydatabaseoperationsontheparsedRDFstatements.TheRDFloadercallsSQLstatementsthatrecreatestherelationaldatabaseschemaandpopulatesthenewdatabase.Thisprojectisproofofconceptonlyandisdevelopedforonlyverysimplerelationaldatabases.ThesystemcanarchivetableshavingonlythebasicdatatypesVARCHAR,INTEGER,DATE,andFLOAT.Otherdatabasefeaturessuchascompoundkeys,foreignkeys,triggers,constraints,advanceddatatypes,etc.arenothandled.62BackgroundSARDisbasedonthefollowingtechnologies:relationaldatabases,RDF,SWARD,andAmosII.Theconceptsofrelationaldatabasesareassumedknowntothereaderandaredescribedinmanytextbooks,e.g.[14].2.1SemanticWebandRDFInarelationaldatabasethedescriptionoftablesisprovidedbytheschema.Similarlysemanticweb[3]representationscanbeusedtodescribetheschemaofwebresources.ThesemanticwebisawayofrepresentingWorldWideWebinformation,inwhichtheinformationisexpressednotonlyforinterfacingusersaswithHTML,butalsoinaformsothatthatisunderstandableandusedbyprogrammersandprograms.RDF[4]isthebasiclanguagefordescribingwebcontentsusedinthesemanticweb.AnyexpressioninRDFisrepresentedasacollectionofRDFtriples[4],alsocalledRDFstatements.AsetofsuchtriplesiscalledanRDFgraph.AnRDFtriplecontainsthreecomponents:•Thesubjectisusedtoidentifytheentitydescribedbythestatement.Forexample,ifweconsideranRDFstatementthatstatesthatthedocu

1 / 27
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功