File Coverage

lib/FAIR/NAMESPACES.pm
Criterion Covered Total %
statement 21 21 100.0
branch n/a
condition n/a
subroutine 14 14 100.0
pod 0 10 0.0
total 35 45 77.7


line stmt bran cond sub pod time code
1             package FAIR::NAMESPACES;
2             $FAIR::NAMESPACES::VERSION = '0.230';
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     6   29 use strict;
  6         11  
  6         208  
7 6     6   32 use vars qw(@ISA @EXPORT);
  6         7  
  6         376  
8 6     6   43 use Exporter;
  6         10  
  6         430  
9              
10             BEGIN {
11 6     6   109 @ISA = qw( Exporter );
12              
13             # Constants for FAIR Namespaces - I know that this is an AWFUL way to do this! SORRY TO THE FUTURE!
14 6         1063 @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     26 0 67 sub DCAT () {return 'http://www.w3.org/ns/dcat#' }
31 31     31 0 156 sub DC () {return 'http://purl.org/dc/terms/' }
32 6     6 0 16 sub DCTYPE (){return 'http://purl.org/dc/dcmitype/' }
33 26     26 0 62 sub FOAF () {return 'http://xmlns.com/foaf/0.1/' }
34 51     51 0 149 sub RDF () {return 'http://www.w3.org/1999/02/22-rdf-syntax-ns#' }
35 26     26 0 68 sub RDFS () {return 'http://www.w3.org/2000/01/rdf-schema#' }
36 26     26 0 72 sub SKOS () {return 'http://www.w3.org/2004/02/skos/core#' }
37 6     6 0 14 sub VCARD () {return 'http://www.w3.org/2006/vcard/ns#' }
38 6     6 0 13 sub XSD () {return 'http://www.w3.org/2001/XMLSchema#' }
39              
40             #sub FAIR() {return 'http://fairdata.org/ontology/FAIR-Data#'}
41 53     53 0 502 sub FAIR() {return 'http://datafairport.org/schemas/FAIR-schema.owl#'}
42              
43             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.230
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) 2015 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