Skip to content

Commit

Permalink
Merge pull request perma-id#3934 from DACE-DL/master
Browse files Browse the repository at this point in the history
Creation for a new persistent URI https://w3id.org/lpto
  • Loading branch information
dgarijo authored Mar 6, 2024
2 parents 09d1a60 + 73f8a78 commit cf99b5e
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 1 deletion.
2 changes: 1 addition & 1 deletion LPT/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ LPT Classification:
* Thesaurus <https://w3id.org/LPT/Thesaurus>

Contacts:
* Our Github address https://github.com/DACE-DL
* Our Github address [DACE-DL](https://github.com/DACE-DL)
* Raphaël Conde Salazar <[email protected]>
* Clément Jonquet <[email protected]>
* Danai Symeonidou <[email protected]>
Expand Down
74 changes: 74 additions & 0 deletions lpto/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# Turn off MultiViews
Options -MultiViews

# Directive to ensure *.rdf files served as appropriate content type,
# if not present in main apache config
AddType application/rdf+xml .rdf
AddType application/rdf+xml .owl
AddType text/turtle .ttl
AddType application/n-triples .n3
AddType application/ld+json .json

RewriteEngine on

# Rewrite rule for latest version.
RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(text/html|application/xhtml\+xml)
RewriteCond %{HTTP_ACCEPT} text/html [OR]
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
RewriteRule ^$ https://lptontology.github.io/index-en.html [R=303,L]

# Rewrite rule to serve JSON-LD content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} application/ld\+json
RewriteRule ^$ https://lptontology.github.io/ontology.json [R=303,L]

# Rewrite rule to serve RDF/XML content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} \*/\* [OR]
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
RewriteRule ^$ https://lptontology.github.io/ontology.xml [R=303,L]

# Rewrite rule to serve N-Triples content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} application/n-triples
RewriteRule ^$ https://lptontology.github.io/ontology.nt [R=303,L]

# Rewrite rule to serve TTL content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} text/turtle [OR]
RewriteCond %{HTTP_ACCEPT} text/\* [OR]
RewriteCond %{HTTP_ACCEPT} \*/turtle
RewriteRule ^$ https://lptontology.github.io/ontology.ttl [R=303,L]


# Rewrite rules for any other version.
RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(text/html|application/xhtml\+xml)
RewriteCond %{HTTP_ACCEPT} text/html [OR]
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
RewriteRule ^(.+)$ https://lptontology.github.io/$1/index-en.html [R=303,L]

# Rewrite rule to serve JSON-LD content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} application/ld\+json
RewriteRule ^(.+)$ https://lptontology.github.io/$1/ontology.json [R=303,L]

# Rewrite rule to serve RDF/XML content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} \*/\* [OR]
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
RewriteRule ^(.+)$ https://lptontology.github.io/$1/ontology.xml [R=303,L]

# Rewrite rule to serve N-Triples content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} application/n-triples
RewriteRule ^(.+)$ https://lptontology.github.io/$1/ontology.nt [R=303,L]

# Rewrite rule to serve TTL content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} text/turtle [OR]
RewriteCond %{HTTP_ACCEPT} text/\* [OR]
RewriteCond %{HTTP_ACCEPT} \*/turtle
RewriteRule ^(.+)$ https://lptontology.github.io/$1/ontology.ttl [R=303,L]



RewriteCond %{HTTP_ACCEPT} .+
RewriteRule ^(.*)$ https://lptontology.github.io/406.html [R=406,L]
# Default response
# ---------------------------
# Rewrite rule to serve the RDF/XML content from the vocabulary URI by default
RewriteRule ^$ https://lptontology.github.io/ontology.xml [R=303,L]
28 changes: 28 additions & 0 deletions lpto/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# LPTO: Ontology of linking problem types.
==========================================

# Description and publication

This project consists in building an ontology of the different types of problems that can be encountered in a data linking process.


## Persistent URI
https://w3id.org/lpto is a persistent URI namespace for **Ontology of linking problem types (LPTO)** Ontology resources.


## License
The LPTO vocabulary is licensed under Creative Commons 4.0 International.

## Contacts

* Our Github address [LPTOntology](https://github.com/LPTOntology)

**Raphaël Conde Salazar (University of Montpellier)**
[DACE-DL](https://github.com/DACE-DL)
<[email protected]>

**Clément Jonquet (University of Montpellier)**
<[email protected]>

**Danai Symeonidou (University of Montpellier)**
<[email protected]>

0 comments on commit cf99b5e

Please sign in to comment.