This repository has been archived by the owner on Jul 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initial landing: DBpedia, gutenberg, open library (in our own endpoint)
- Loading branch information
lod
committed
Jul 17, 2012
1 parent
16718aa
commit 0b0166f
Showing
5 changed files
with
299 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
|
||
<?xml version="1.0" encoding="utf-8"?> | ||
<Silk> | ||
<Prefixes> | ||
<Prefix id="rdf" namespace="http://www.w3.org/1999/02/22-rdf-syntax-ns#"/> | ||
<Prefix id="rdfs" namespace="http://www.w3.org/2000/01/rdf-schema#"/> | ||
<Prefix id="isbd" namespace="http://iflastandards.info/ns/isbd/elements/"/> | ||
<Prefix id="owl" namespace="http://www.w3.org/2002/07/owl#"/> | ||
<Prefix id="bibo" namespace="http://purl.org/ontology/bibo/"/> | ||
<Prefix id="rdrel" namespace="http://rdvocab.info/RDARelationshipsWEMI/"/> | ||
<Prefix id="dbpedia-owl" namespace="http://dbpedia.org/ontology/"/> | ||
<Prefix id="dbpedia-prop" namespace="http://dbpedia.org/property/"/> | ||
<Prefix id="dc" namespace="http://purl.org/dc/elements/1.1/"/> | ||
<Prefix id="dcterms" namespace="http://purl.org/dc/terms/"/> | ||
<Prefix id="category" namespace="http://de.dbpedia.org/resource/Kategorie:"/> | ||
</Prefixes> | ||
<DataSources> | ||
<DataSource id="lobid" type="sparqlEndpoint"> | ||
<Param name="endpointURI" value="http://gaia.hbz-nrw.de:8000/sparql/"/> | ||
</DataSource> | ||
<DataSource id="dbpedia" type="sparqlEndpoint"> | ||
<Param name="endpointURI" value="http://de.dbpedia.org/sparql"/> | ||
<Param name="retryCount" value="100"/> | ||
<Param name="retryPause" value="400"/> | ||
</DataSource> | ||
</DataSources> | ||
<Interlinks> | ||
<Interlink id="workManifested"> | ||
<LinkType>rdrel:workManifested</LinkType> | ||
<SourceDataset dataSource="lobid" var="b"> | ||
<RestrictTo> | ||
?b rdf:type bibo:Book | ||
</RestrictTo> | ||
</SourceDataset> | ||
<TargetDataset dataSource="dbpedia" var="a"> | ||
<RestrictTo> | ||
?a dcterms:subject category:Literarisches_Werk | ||
</RestrictTo> | ||
</TargetDataset> | ||
<LinkageRule> | ||
<Aggregate type="max"> | ||
<Compare metric="equality"> | ||
<TransformInput function="lowerCase"> | ||
<TransformInput function="replace"> | ||
<TransformInput function="regexReplace"> | ||
<Input path="?a/rdfs:label"/> | ||
<Param name="regex" value="_?\(.*\)$"/> | ||
<Param name="replace" value=""/> | ||
</TransformInput> | ||
<Param name="search" value="_"/> | ||
<Param name="replace" value=" "/> | ||
</TransformInput> | ||
</TransformInput> | ||
<TransformInput function="lowerCase"> | ||
<Input path="?b/isbd:P1004"/> | ||
</TransformInput> | ||
</Compare> | ||
</Aggregate> | ||
</LinkageRule> | ||
<Filter/> | ||
</Interlink> | ||
</Interlinks> | ||
</Silk> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Silk> | ||
<Prefixes> | ||
<Prefix id="rdf" namespace="http://www.w3.org/1999/02/22-rdf-syntax-ns#"/> | ||
<Prefix id="rdfs" namespace="http://www.w3.org/2000/01/rdf-schema#"/> | ||
<Prefix id="isbd" namespace="http://iflastandards.info/ns/isbd/elements/"/> | ||
<Prefix id="owl" namespace="http://www.w3.org/2002/07/owl#"/> | ||
<Prefix id="bibo" namespace="http://purl.org/ontology/bibo/"/> | ||
<Prefix id="rdrel" namespace="http://rdvocab.info/RDARelationshipsWEMI/"/> | ||
<Prefix id="pg" namespace="http://www.gutenberg.org/rdfterms/"/> | ||
<Prefix id="dc" namespace="http://purl.org/dc/elements/1.1/"/> | ||
<Prefix id="dcterms" namespace="http://purl.org/dc/terms/"/> | ||
<Prefix id="frbr" namespace="http://purl.org/vocab/frbr/core#"/> | ||
|
||
</Prefixes> | ||
<DataSources> | ||
<DataSource id="lobid" type="sparqlEndpoint"> | ||
<Param name="endpointURI" value="http://gaia.hbz-nrw.de:8000/sparql/"/> | ||
</DataSource> | ||
<DataSource id="pg" type="sparqlEndpoint"> | ||
<Param name="endpointURI" value="http://gaia.hbz-nrw.de:8000/sparql/"/> | ||
<Param name="retryCount" value="100"/> | ||
<Param name="retryPause" value="400"/> | ||
</DataSource> | ||
</DataSources> | ||
<Interlinks> | ||
<Interlink id="workManifested"> | ||
<LinkType>rdrel:workManifested</LinkType> | ||
<SourceDataset dataSource="lobid" var="b"> | ||
<RestrictTo> | ||
?b rdf:type frbr:manifestation <!-- disabled Manifestation --> | ||
</RestrictTo> | ||
</SourceDataset> | ||
<TargetDataset dataSource="pg" var="a"> | ||
<RestrictTo> | ||
?a rdf:type pg:etext | ||
</RestrictTo> | ||
</TargetDataset> | ||
<LinkageRule> | ||
<Aggregate type="max"> | ||
<Compare metric="equality"> | ||
<TransformInput function="lowerCase"> | ||
<TransformInput function="removeSpecialChars"> | ||
<Input path="?a/dc:title"/> | ||
</TransformInput> | ||
</TransformInput> | ||
<TransformInput function="lowerCase"> | ||
<Input path="?b/isbd:P1004"/> | ||
</TransformInput> | ||
</Compare> | ||
</Aggregate> | ||
</LinkageRule> | ||
<Filter/> | ||
</Interlink> | ||
</Interlinks> | ||
</Silk> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Silk> | ||
<Prefixes> | ||
<Prefix id="rdf" namespace="http://www.w3.org/1999/02/22-rdf-syntax-ns#"/> | ||
<Prefix id="rdfs" namespace="http://www.w3.org/2000/01/rdf-schema#"/> | ||
<Prefix id="isbd" namespace="http://iflastandards.info/ns/isbd/elements/"/> | ||
<Prefix id="owl" namespace="http://www.w3.org/2002/07/owl#"/> | ||
<Prefix id="bibo" namespace="http://purl.org/ontology/bibo/"/> | ||
<Prefix id="rdrel" namespace="http://rdvocab.info/RDARelationshipsWEMI/"/> | ||
<Prefix id="dbpedia-template" namespace="http://dbpedia.org/resource/Template:"/> | ||
<Prefix id="dbpedia-owl" namespace="http://dbpedia.org/ontology/"/> | ||
<Prefix id="dbpprop" namespace="http://dbpedia.org/property/"/> | ||
<Prefix id="dc" namespace="http://purl.org/dc/elements/1.1/"/> | ||
<Prefix id="dcterms" namespace="http://purl.org/dc/terms/"/> | ||
<Prefix id="category" namespace="http://de.dbpedia.org/resource/Kategorie:"/> | ||
<Prefix id="frbr" namespace="http://purl.org/vocab/frbr/core#"/> | ||
<Prefix id="schema" namespace="http://schema.org/Book" /> | ||
<Prefix id="yago" namespace="http://dbpedia.org/class/yago/"/> | ||
|
||
</Prefixes> | ||
<DataSources> | ||
<DataSource id="lobid" type="sparqlEndpoint"> | ||
<Param name="endpointURI" value="http://gaia.hbz-nrw.de:8000/sparql/"/> | ||
</DataSource> | ||
<DataSource id="dbpedia" type="sparqlEndpoint"> | ||
<Param name="endpointURI" value="http://live.dbpedia.org/sparql"/> | ||
<Param name="retryCount" value="100"/> | ||
<Param name="retryPause" value="400"/> | ||
</DataSource> | ||
</DataSources> | ||
<Interlinks> | ||
<Interlink id="workManifested"> | ||
<LinkType>rdrel:workManifested</LinkType> | ||
<SourceDataset dataSource="lobid" var="b"> | ||
<RestrictTo> | ||
?b rdf:type frbr:manifestation <!-- disabled Manifestation --> | ||
</RestrictTo> | ||
</SourceDataset> | ||
<TargetDataset dataSource="dbpedia" var="a"> | ||
<RestrictTo> | ||
{?a dbpprop:wikiPageUsesTemplate dbpedia-template:Infobox_book_series} | ||
UNION {?a rdf:type dbpedia-owl:WrittenWork} | ||
UNION {?a rdf:type schema:Book} | ||
</RestrictTo> | ||
</TargetDataset> | ||
<LinkageRule> | ||
<Aggregate type="max"> | ||
<Compare metric="equality"> | ||
<TransformInput function="lowerCase"> | ||
<TransformInput function="replace"> | ||
<TransformInput function="regexReplace"> | ||
<Input path="?a/rdfs:label"/> | ||
<Param name="regex" value="_?\(.*\)$"/> | ||
<Param name="replace" value=""/> | ||
</TransformInput> | ||
<Param name="search" value="_"/> | ||
<Param name="replace" value=" "/> | ||
</TransformInput> | ||
</TransformInput> | ||
<TransformInput function="lowerCase"> | ||
<Input path="?b/isbd:P1004"/> | ||
</TransformInput> | ||
</Compare> | ||
</Aggregate> | ||
</LinkageRule> | ||
<Filter/> | ||
</Interlink> | ||
</Interlinks> | ||
</Silk> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Silk> | ||
<Prefixes> | ||
<Prefix id="rdf" namespace="http://www.w3.org/1999/02/22-rdf-syntax-ns#"/> | ||
<Prefix id="rdfs" namespace="http://www.w3.org/2000/01/rdf-schema#"/> | ||
<Prefix id="isbd" namespace="http://iflastandards.info/ns/isbd/elements/"/> | ||
<Prefix id="owl" namespace="http://www.w3.org/2002/07/owl#"/> | ||
<Prefix id="bibo" namespace="http://purl.org/ontology/bibo/"/> | ||
<Prefix id="rdrel" namespace="http://rdvocab.info/RDARelationshipsWEMI/"/> | ||
<Prefix id="ol" namespace="http://openlibrary.org/"/> | ||
<Prefix id="dc" namespace="http://purl.org/dc/elements/1.1/"/> | ||
<Prefix id="dcterms" namespace="http://purl.org/dc/terms/"/> | ||
<Prefix id="frbr" namespace="http://purl.org/vocab/frbr/core#"/> | ||
<Prefix id="lobidResource" namespace="http://lobid.org/resource/"/> | ||
|
||
</Prefixes> | ||
<DataSources> | ||
<DataSource id="lobid" type="sparqlEndpoint"> | ||
<Param name="endpointURI" value="http://gaia.hbz-nrw.de:8000/sparql/"/> | ||
</DataSource> | ||
<DataSource id="ol" type="sparqlEndpoint"> | ||
<Param name="endpointURI" value="http://gaia.hbz-nrw.de:8001/sparql/"/> | ||
<Param name="retryCount" value="100"/> | ||
<Param name="retryPause" value="400"/> | ||
</DataSource> | ||
</DataSources> | ||
<Interlinks> | ||
<Interlink id="workManifested"> | ||
<LinkType>rdrel:workManifested</LinkType> | ||
<SourceDataset dataSource="lobid" var="b"> | ||
<RestrictTo> | ||
?b rdf:type bibo:Book | ||
</RestrictTo> | ||
</SourceDataset> | ||
|
||
<TargetDataset dataSource="ol" var="a"> | ||
<RestrictTo> | ||
GRAPH lobidResource:openlibrary { <!-- disabled graph und uuisbn--> | ||
?a bibo:uuisbn10 ?o } | ||
</RestrictTo> | ||
</TargetDataset> | ||
<LinkageRule> | ||
<Aggregate type="max"> | ||
<Compare metric="equality"> | ||
<Input path="?a/bibo:isbn10"/> | ||
<Input path="?b/bibo:isbn10"/> | ||
</Compare> | ||
</Aggregate> | ||
</LinkageRule> | ||
<Filter/> | ||
</Interlink> | ||
</Interlinks> | ||
</Silk> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Silk> | ||
<Prefixes> | ||
<Prefix id="rdf" namespace="http://www.w3.org/1999/02/22-rdf-syntax-ns#"/> | ||
<Prefix id="rdfs" namespace="http://www.w3.org/2000/01/rdf-schema#"/> | ||
<Prefix id="isbd" namespace="http://iflastandards.info/ns/isbd/elements/"/> | ||
<Prefix id="owl" namespace="http://www.w3.org/2002/07/owl#"/> | ||
<Prefix id="bibo" namespace="http://purl.org/ontology/bibo/"/> | ||
<Prefix id="rdrel" namespace="http://rdvocab.info/RDARelationshipsWEMI/"/> | ||
<Prefix id="ol" namespace="http://openlibrary.org/"/> | ||
<Prefix id="dc" namespace="http://purl.org/dc/elements/1.1/"/> | ||
<Prefix id="dcterms" namespace="http://purl.org/dc/terms/"/> | ||
<Prefix id="frbr" namespace="http://purl.org/vocab/frbr/core#"/> | ||
<Prefix id="lobidResource" namespace="http://lobid.org/resource/"/> | ||
|
||
</Prefixes> | ||
<DataSources> | ||
<DataSource id="lobid" type="sparqlEndpoint"> | ||
<Param name="endpointURI" value="http://gaia.hbz-nrw.de:8000/sparql/"/> | ||
</DataSource> | ||
<DataSource id="ol" type="sparqlEndpoint"> | ||
<Param name="endpointURI" value="http://gaia.hbz-nrw.de:8000/sparql/"/> | ||
<Param name="retryCount" value="100"/> | ||
<Param name="retryPause" value="400"/> | ||
</DataSource> | ||
</DataSources> | ||
<Interlinks> | ||
<Interlink id="workManifested"> | ||
<LinkType>rdrel:workManifested</LinkType> | ||
<SourceDataset dataSource="lobid" var="b"> | ||
<RestrictTo> | ||
?b rdf:type frbr:manifestation <!-- disabled Manifestation --> | ||
</RestrictTo> | ||
</SourceDataset> | ||
|
||
<TargetDataset dataSource="ol" var="a"> | ||
<RestrictTo> | ||
GRAPH lobidResource:openlibrary { | ||
?a bibo:isbn13 ?o } | ||
</RestrictTo> | ||
</TargetDataset> | ||
<LinkageRule> | ||
<Aggregate type="max"> | ||
<Compare metric="equality"> | ||
<Input path="?a/bibo:isbn13"/> | ||
<Input path="?b/bibo:isbn13"/> | ||
</Compare> | ||
</Aggregate> | ||
</LinkageRule> | ||
<Filter/> | ||
</Interlink> | ||
</Interlinks> | ||
</Silk> | ||
|