1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
package org.apache.commons.feedparser; |
18 | |
|
19 | |
import org.jaxen.SimpleNamespaceContext; |
20 | |
import org.jdom.Namespace; |
21 | |
|
22 | |
|
23 | |
|
24 | |
|
25 | |
|
26 | |
|
27 | |
|
28 | 0 | public class NS { |
29 | |
|
30 | 0 | public static final Namespace RDFS = |
31 | |
Namespace.getNamespace( "rdfs", "http://www.w3.org/2000/01/rdf-schema#" ); |
32 | |
|
33 | 0 | public static final Namespace FOAF = |
34 | |
Namespace.getNamespace( "foaf", "http://xmlns.com/foaf/0.1/" ); |
35 | |
|
36 | 0 | public static final Namespace KR = |
37 | |
Namespace.getNamespace( "kr", "http://ksa.peerfear.org/ksa-rdf#" ); |
38 | |
|
39 | 0 | public static final Namespace CONTENT = |
40 | |
Namespace.getNamespace( "content", "http://purl.org/rss/1.0/modules/content/" ); |
41 | |
|
42 | 0 | public static final Namespace QUOTE = |
43 | |
Namespace.getNamespace( "quote", "http://purl.org/rss/1.0/modules/quote/" ); |
44 | |
|
45 | 0 | public static final Namespace RDF = |
46 | |
Namespace.getNamespace( "rdf", "http://www.w3.org/1999/02/22-rdf-syntax-ns#" ); |
47 | |
|
48 | 0 | public static final Namespace RSS = |
49 | |
Namespace.getNamespace( "rss", "http://purl.org/rss/1.0/" ); |
50 | |
|
51 | 0 | public static final Namespace AGG = |
52 | |
Namespace.getNamespace( "agg", "http://purl.org/rss/modules/aggregation/" ); |
53 | |
|
54 | 0 | public static final Namespace IM = |
55 | |
Namespace.getNamespace( "im", "http://purl.org/rss/1.0/item-images/" ); |
56 | |
|
57 | 0 | public static final Namespace DC = |
58 | |
Namespace.getNamespace( "dc", "http://purl.org/dc/elements/1.1/" ); |
59 | |
|
60 | 0 | public static final Namespace DCTERMS = |
61 | |
Namespace.getNamespace( "dcterms", "http://purl.org/dc/terms/" ); |
62 | |
|
63 | 0 | public static final Namespace SUBSCRIPTION = |
64 | |
Namespace.getNamespace( "sub", "http://purl.org/rss/1.0/modules/subscription/" ); |
65 | |
|
66 | 0 | public static final Namespace NC = |
67 | |
Namespace.getNamespace( "NC", "http://home.netscape.com/NC-rdf#" ); |
68 | |
|
69 | 0 | public static final Namespace XHTML = |
70 | |
Namespace.getNamespace( "xhtml", "http://www.w3.org/1999/xhtml" ); |
71 | |
|
72 | 0 | public static final Namespace ATOM = |
73 | |
Namespace.getNamespace( "atom", "http://purl.org/atom/ns#" ); |
74 | |
|
75 | 0 | public static final Namespace WFW = |
76 | |
Namespace.getNamespace( "wfw", "http://wellformedweb.org/CommentAPI/" ); |
77 | |
|
78 | |
|
79 | |
|
80 | |
|
81 | 0 | public static final Namespace TAXO = |
82 | |
Namespace.getNamespace( "taxo", "http://purl.org/rss/1.0/modules/taxonomy/" ); |
83 | |
|
84 | 0 | public static SimpleNamespaceContext context = null; |
85 | |
|
86 | |
static { |
87 | |
|
88 | |
|
89 | 0 | context = new SimpleNamespaceContext(); |
90 | 0 | context.addNamespace( ATOM.getPrefix(), ATOM.getURI() ); |
91 | 0 | context.addNamespace( DC.getPrefix(), DC.getURI() ); |
92 | 0 | context.addNamespace( FOAF.getPrefix(), FOAF.getURI() ); |
93 | 0 | context.addNamespace( RDF.getPrefix(), RDF.getURI() ); |
94 | 0 | context.addNamespace( RDFS.getPrefix(), RDFS.getURI() ); |
95 | 0 | context.addNamespace( TAXO.getPrefix(), TAXO.getURI() ); |
96 | |
|
97 | 0 | } |
98 | |
|
99 | |
} |