Revision 49446
Added by Alessia Bardi over 6 years ago
modules/dnet-parthenos-publisher/trunk/src/main/java/eu/dnetlib/parthenos/registry/RegistryClient.java | ||
---|---|---|
32 | 32 |
private GCubeResourceRegistrator gCubeResourceRegistrator; |
33 | 33 |
private SaxonHelper saxonHelper; |
34 | 34 |
private XPathSelector xpathSelectorObjIdentifier; |
35 |
// private XPathSelector xpathSelectorCollectionDate; |
|
36 |
// private XPathSelector xpathSelectorTransformationDate; |
|
37 |
// private XPathSelector xpathSelectorDatasourceName; |
|
38 |
// private XPathSelector xpathSelectorDatasourceApi; |
|
39 | 35 |
private XPathSelector xpathSelectorRDF; |
40 | 36 |
|
41 | 37 |
private ResourceRegistryPublisher resourceRegistryPublisher; |
42 | 38 |
private ResourceRegistryClient resourceRegistryClient; |
43 |
//private String registryBaseURL; |
|
44 | 39 |
private String defaultBaseURI; |
45 | 40 |
|
46 | 41 |
protected RegistryClient(final SaxonHelper saxonHelper, |
47 | 42 |
final String defaultBaseURI, |
48 | 43 |
final GCubeResourceRegistrator gCubeResourceRegistrator) |
49 | 44 |
throws ParthenosPublisherException { |
50 |
//this.registryBaseURL = registryBaseURL; |
|
51 | 45 |
this.saxonHelper = saxonHelper; |
52 | 46 |
this.defaultBaseURI = defaultBaseURI; |
53 | 47 |
this.resourceRegistryPublisher = ResourceRegistryPublisherFactory.create(); |
... | ... | |
87 | 81 |
namespaces.put("dri", DRI_NAMESPACE_URI); |
88 | 82 |
namespaces.put("rdf", RDF_NAMESPACE_URI); |
89 | 83 |
xpathSelectorObjIdentifier = this.saxonHelper.help().prepareXPathSelector("//oai:header/dri:objIdentifier/text()", namespaces); |
90 |
//xpathSelectorCollectionDate = this.saxonHelper.help().prepareXPathSelector("//oai:header/dri:dateOfCollection/text()", namespaces); |
|
91 |
//xpathSelectorTransformationDate = this.saxonHelper.help().prepareXPathSelector("//oai:header/dri:dateOfTransformation/text()", namespaces); |
|
92 |
//xpathSelectorDatasourceName = this.saxonHelper.help().prepareXPathSelector("//oai:header/dri:datasourcename/text()", namespaces); |
|
93 |
//xpathSelectorDatasourceApi = this.saxonHelper.help().prepareXPathSelector("//oai:header/dri:datasourceapi/text()", namespaces); |
|
94 | 84 |
xpathSelectorRDF = this.saxonHelper.help().prepareXPathSelector("//oai:metadata/rdf:RDF", namespaces); |
95 | 85 |
} |
96 | 86 |
|
... | ... | |
106 | 96 |
this.saxonHelper = saxonHelper; |
107 | 97 |
} |
108 | 98 |
|
109 |
// public String getRegistryBaseURL() { |
|
110 |
// return registryBaseURL; |
|
111 |
// } |
|
112 |
// |
|
113 |
// public void setRegistryBaseURL(final String registryBaseURL) { |
|
114 |
// this.registryBaseURL = registryBaseURL; |
|
115 |
// } |
|
116 | 99 |
|
117 | 100 |
public void setDefaultBaseURI(final String defaultBaseURI) { |
118 | 101 |
this.defaultBaseURI = defaultBaseURI; |
Also available in: Unified diff
cleanup commented code