| 1 | package FAIR::NAMESPACES; | ||
| 2 | 6 | $FAIR::NAMESPACES::VERSION = '0.41'; | |
| 3 | |||
| 4 | # ABSTRACT: a utility object that contains the namespaces commonly used by FAIR profiles. This shoudl probably be replaced by RDF::NS one day, because it is horribly hacky! | ||
| 5 | |||
| 6 | 6 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 6 | ▶ | use vars qw(@ISA @EXPORT); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 6 | ▶ | use Exporter; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | BEGIN { | ||
| 11 | 6 | ▶ | @ISA = qw( Exporter ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | # Constants for FAIR Namespaces - I know that this is an AWFUL way to do this! SORRY TO THE FUTURE! | ||
| 14 | 6 | @EXPORT = qw( | |
| 15 | DCAT | ||
| 16 | DC | ||
| 17 | DCTYPE | ||
| 18 | FOAF | ||
| 19 | RDF | ||
| 20 | RDFS | ||
| 21 | SKOS | ||
| 22 | VCARD | ||
| 23 | XSD | ||
| 24 | FAIR | ||
| 25 | ); | ||
| 26 | } | ||
| 27 | |||
| 28 | #---- Constant definitions | ||
| 29 | # Node types | ||
| 30 | 26 | ▶ | sub DCAT () {return 'http://www.w3.org/ns/dcat#' } |
|
Subroutine
DCAT: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 31 | 31 | ▶ | sub DC () {return 'http://purl.org/dc/terms/' } |
|
Subroutine
DC: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 32 | 6 | ▶ | sub DCTYPE (){return 'http://purl.org/dc/dcmitype/' } |
|
Subroutine
DCTYPE: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 33 | 26 | ▶ | sub FOAF () {return 'http://xmlns.com/foaf/0.1/' } |
|
Subroutine
FOAF: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 34 | 51 | ▶ | sub RDF () {return 'http://www.w3.org/1999/02/22-rdf-syntax-ns#' } |
|
Subroutine
RDF: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 35 | 26 | ▶ | sub RDFS () {return 'http://www.w3.org/2000/01/rdf-schema#' } |
|
Subroutine
RDFS: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 36 | 26 | ▶ | sub SKOS () {return 'http://www.w3.org/2004/02/skos/core#' } |
|
Subroutine
SKOS: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 37 | 6 | ▶ | sub VCARD () {return 'http://www.w3.org/2006/vcard/ns#' } |
|
Subroutine
VCARD: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 38 | 6 | ▶ | sub XSD () {return 'http://www.w3.org/2001/XMLSchema#' } |
|
Subroutine
XSD: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 39 | |||
| 40 | #sub FAIR() {return 'http://fairdata.org/ontology/FAIR-Data#'} | ||
| 41 | 53 | ▶ | sub FAIR() {return 'http://datafairport.org/schemas/FAIR-schema.owl#'} |
|
Subroutine
FAIR: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 42 | |||
| 43 | 6 | 1; | |
| 44 | |||
| 45 | __END__ | ||
| 46 | |||
| 47 | =pod | ||
| 48 | |||
| 49 | =encoding UTF-8 | ||
| 50 | |||
| 51 | =head1 NAME | ||
| 52 | |||
| 53 | FAIR::NAMESPACES - a utility object that contains the namespaces commonly used by FAIR profiles. This shoudl probably be replaced by RDF::NS one day, because it is horribly hacky! | ||
| 54 | |||
| 55 | =head1 VERSION | ||
| 56 | |||
| 57 | version 0.41 | ||
| 58 | |||
| 59 | =head1 AUTHOR | ||
| 60 | |||
| 61 | Mark Denis Wilkinson (markw [at] illuminae [dot] com) | ||
| 62 | |||
| 63 | =head1 COPYRIGHT AND LICENSE | ||
| 64 | |||
| 65 | This software is Copyright (c) 2016 by Mark Denis Wilkinson. | ||
| 66 | |||
| 67 | This is free software, licensed under: | ||
| 68 | |||
| 69 | The Apache License, Version 2.0, January 2004 | ||
| 70 | |||
| 71 | =cut | ||