# Pubby Example Configuration # # This configuration connects to the DBpedia SPARQL endpoint and # re-publishes on your local machine, with dereferenceable # localhost URIs. # # This assumes you already have a servlet container running # on your machine at http://localhost:8080/ . # # Install Pubby as the root webapp of your servlet container, # and make sure the config-file parameter in Pubby's web.xml # points to this configuration file. # # Then browse to http://localhost:8080/ . # Prefix declarations to be used in RDF output @prefix conf: . @prefix meta: . @prefix rdf: . @prefix rdfs: . @prefix xsd: . @prefix owl: . @prefix dc: . @prefix dcterms: . @prefix foaf: . @prefix skos: . @prefix geo: . @prefix dbpedia: . @prefix p: . @prefix yago: . @prefix units: . @prefix geonames: . @prefix prv: . @prefix prvTypes: . @prefix doap: . @prefix void: . @prefix ir: . # Server configuration section <> a conf:Configuration; # Project name for display in page titles conf:projectName "DBpedia.org"; # Homepage with description of the project for the link in the page header conf:projectHomepage ; # The Pubby root, where the webapp is running inside the servlet container. conf:webBase ; # URL of an RDF file whose prefix mapping is to be used by the # server; defaults to <>, which is *this* file. conf:usePrefixesFrom <>; # If labels and descriptions are available in multiple languages, # prefer this one. conf:defaultLanguage "en"; # When the homepage of the server is accessed, this resource will # be shown. conf:indexResource ; # Dataset configuration section #1 (for DBpedia resources) # # URIs in the SPARQL endpoint: http://dbpedia.org/resource/* # URIs on the Web: http://localhost:8080/resource/* conf:dataset [ # SPARQL endpoint URL of the dataset conf:sparqlEndpoint ; # Default graph name to query (not necessary for most endpoints) conf:sparqlDefaultGraph ; # Common URI prefix of all resource URIs in the SPARQL dataset conf:datasetBase ; # Will be appended to the conf:webBase to form the public # resource URIs; if not present, defaults to "" conf:webResourcePrefix "resource/"; # Fixes an issue with the server running behind an Apache proxy; # can be ignored otherwise conf:fixUnescapedCharacters "(),'!$&*+;=@"; # include metadata conf:metadataTemplate "metadata.ttl"; # configure your metadata here # Use properties with the meta: prefix where the property name # corresponds to the placeholder URIs in metadata.ttl that begin # with about:metadata:metadata: # Examples for such properties are: # meta:pubbyUser ; # meta:pubbyOperator ; # meta:endpointUser ; # meta:endpointOperator ; # meta:endpointDataset ; ]; # Dataset configuration section #2 (for DBpedia classes and properties) # # URIs in the SPARQL endpoint: http://dbpedia.org/class/* # http://dbpedia.org/property/* # URIs on the Web: http://localhost:8080/class/* # http://localhost:8080/property/* conf:dataset [ conf:sparqlEndpoint ; conf:sparqlDefaultGraph ; conf:datasetBase ; # Dataset URIs are mapped only if the part after the # conf:webBase matches this regular expression conf:datasetURIPattern "(class|property)/.*"; conf:fixUnescapedCharacters "(),'!$&*+;=@"; ]; .