lib/FAIR/NAMESPACES.pm

filter: Statementstmt 56.5% 13 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 28.5% 4 / 14 Podpod 0.0% 0 / 10 totaltotal 36.1% 17 / 47 CC 1 SCAR 5.4
CC
1
Cov
57%
DCAT
2.0
DC
2.0
DCTYPE
2.0
CRAP 1.7
« blib/lib/FAIR/NAMESPACES.pm ↑ Summary blib/lib/FAIR/Data.pm »
1 package FAIR::NAMESPACES;
2 1 $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 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use vars qw(@ISA @EXPORT);
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use Exporter;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 BEGIN {
11 1 ▶ @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 1 @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 0 ▶sub DCAT () {return 'http://www.w3.org/ns/dcat#' }
Subroutine DCAT: not called CC=1 SCAR=6.9
Pod undocumented
31 0 ▶sub DC () {return 'http://purl.org/dc/terms/' }
Subroutine DC: not called CC=1 SCAR=6.9
Pod undocumented
32 0 ▶sub DCTYPE (){return 'http://purl.org/dc/dcmitype/' }
Subroutine DCTYPE: not called CC=1 SCAR=6.9
Pod undocumented
33 0 ▶sub FOAF () {return 'http://xmlns.com/foaf/0.1/' }
Subroutine FOAF: not called CC=1 SCAR=6.9
Pod undocumented
34 0 ▶sub RDF () {return 'http://www.w3.org/1999/02/22-rdf-syntax-ns#' }
Subroutine RDF: not called CC=1 SCAR=6.9
Pod undocumented
35 0 ▶sub RDFS () {return 'http://www.w3.org/2000/01/rdf-schema#' }
Subroutine RDFS: not called CC=1 SCAR=6.9
Pod undocumented
36 0 ▶sub SKOS () {return 'http://www.w3.org/2004/02/skos/core#' }
Subroutine SKOS: not called CC=1 SCAR=6.9
Pod undocumented
37 0 ▶sub VCARD () {return 'http://www.w3.org/2006/vcard/ns#' }
Subroutine VCARD: not called CC=1 SCAR=6.9
Pod undocumented
38 0 ▶sub XSD () {return 'http://www.w3.org/2001/XMLSchema#' }
Subroutine XSD: not called CC=1 SCAR=6.9
Pod undocumented
39  
40 #sub FAIR() {return 'http://fairdata.org/ontology/FAIR-Data#'}
41 0 ▶sub FAIR() {return 'http://datafairport.org/schemas/FAIR-schema.owl#'}
Subroutine FAIR: not called CC=1 SCAR=6.9
Pod undocumented
42  
43 1 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
« blib/lib/FAIR/NAMESPACES.pm ↑ Summary blib/lib/FAIR/Data.pm »