blib/lib/FAIR/NAMESPACES.pm untested

filter: Statementstmt 0.0% 0 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 14 Podpod 0.0% 0 / 11 totaltotal 0.0% 0 / 48 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
DCAT
2.0
DC
2.0
CRAP 2.0
1 package FAIR::NAMESPACES;
2 $FAIR::NAMESPACES::VERSION = '1.0';
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 use strict;
7 use vars qw(@ISA @EXPORT);
8 use Exporter;
9  
10 BEGIN {
11 @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 @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 sub DCAT () {return 'http://www.w3.org/ns/dcat#' }
31 sub DC () {return 'http://purl.org/dc/terms/' }
32 sub DCTYPE (){return 'http://purl.org/dc/dcmitype/' }
33 sub FOAF () {return 'http://xmlns.com/foaf/0.1/' }
34 sub RDF () {return 'http://www.w3.org/1999/02/22-rdf-syntax-ns#' }
35 sub RDFS () {return 'http://www.w3.org/2000/01/rdf-schema#' }
36 sub SKOS () {return 'http://www.w3.org/2004/02/skos/core#' }
37 sub VCARD () {return 'http://www.w3.org/2006/vcard/ns#' }
38 sub XSD () {return 'http://www.w3.org/2001/XMLSchema#' }
39  
40 #sub FAIR() {return 'http://fairdata.org/ontology/FAIR-Data#'}
41 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 1.0
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