<?xml version="1.0" encoding="utf-8"?> |
<?xml version="1.0" encoding="utf-8"?> |
<rdf:RDF |
<rdf:RDF |
xmlns:py="http://genshi.edgewall.org/" |
xmlns:py="http://genshi.edgewall.org/" |
xmlns:foaf="http://xmlns.com/foaf/0.1/" |
xmlns:foaf="http://xmlns.com/foaf/0.1/" |
xmlns:owl="http://www.w3.org/2002/07/owl#" |
xmlns:owl="http://www.w3.org/2002/07/owl#" |
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" |
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" |
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" |
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" |
xmlns:dcat="http://www.w3.org/ns/dcat#" |
xmlns:dcat="http://www.w3.org/ns/dcat#" |
xmlns:dcam="http://purl.org/dc/dcam/" |
xmlns:dcam="http://purl.org/dc/dcam/" |
xmlns:aglsterms="http://www.agls.gov.au/agls/terms/" |
xmlns:aglsterms="http://www.agls.gov.au/agls/terms/" |
xmlns:agentterms="http://www.agls.gov.au/agls/agentterms/" |
xmlns:agentterms="http://www.agls.gov.au/agls/agentterms/" |
xmlns:availterms="http://www.agls.gov.au/agls/availterms/" |
xmlns:availterms="http://www.agls.gov.au/agls/availterms/" |
xmlns:adminterms="http://www.agls.gov.au/agls/adminterms/" |
xmlns:adminterms="http://www.agls.gov.au/agls/adminterms/" |
xmlns:dct="http://purl.org/dc/terms/" |
xmlns:dct="http://purl.org/dc/terms/" |
> |
> |
<dcat:Dataset rdf:about="${ h.url_for(controller='package',action='read',id=c.pkg_dict['name'], qualified=True)}"> |
<dcat:Dataset rdf:about="${ h.url_for(controller='package',action='read',id=c.pkg_dict['name'], qualified=True)}"> |
<dct:identifier>${c.pkg_dict['name']}</dct:identifier> |
<dct:identifier>${c.pkg_dict['name']}</dct:identifier> |
<dct:title>${c.pkg_dict['title']}</dct:title> |
<dct:title>${c.pkg_dict['title']}</dct:title> |
<dct:landingPage rdf:resource="${ h.url_for(controller='package',action='read',id=c.pkg_dict['name'], qualified=True) }"/> |
<dct:landingPage |
|
rdf:resource="${ h.url_for(controller='package',action='read',id=c.pkg_dict['name'], qualified=True) }"/> |
<owl:sameAs rdf:resource="urn:uuid:${c.pkg_dict['id']}"/> |
<owl:sameAs rdf:resource="urn:uuid:${c.pkg_dict['id']}"/> |
<dct:type>Dataset</dct:type> |
<dct:type>Dataset</dct:type> |
<dct:description>${c.pkg_dict['notes']}</dct:description> |
<dct:description>${c.pkg_dict['notes']}</dct:description> |
<dct:issued>${c.pkg_dict['metadata_created']}</dct:issued> |
<dct:issued>${c.pkg_dict['metadata_created']}</dct:issued> |
<dct:modified>${c.pkg_dict['metadata_modified']}</dct:modified> |
<dct:modified>${c.pkg_dict['metadata_modified']}</dct:modified> |
<dct:language>en</dct:language> |
<dct:language>en</dct:language> |
<dct:license>${c.pkg_dict['license_url']}</dct:license> |
<dct:license>${c.pkg_dict['license_url']}</dct:license> |
<py:for each="tag_dict in c.pkg_dict.get('tags',[])"> |
<py:for each="tag_dict in c.pkg_dict.get('tags',[])"> |
<dcat:keyword>${ tag_dict["name"] }</dcat:keyword> |
<dcat:keyword>${ tag_dict["name"] }</dcat:keyword> |
</py:for> |
</py:for> |
<py:for each="group_dict in c.pkg_dict.get('groups',[])"> |
<py:for each="group_dict in c.pkg_dict.get('groups',[])"> |
<dcat:theme>${ tag_dict["title"] }</dcat:theme> |
<dcat:theme>${ group_dict["title"] }</dcat:theme> |
</py:for> |
</py:for> |
|
|
<lol>${h.get_action("user_show",{"id":c.author})["display_name"]}</lol> |
<foaf:homepage |
<lol>${h.get_action("user_show",{"id":c.author})["email"]}</lol> |
rdf:resource="${ h.url_for(controller='package',action='read',id=c.pkg_dict['name'], qualified=True)}"/> |
|
|
<foaf:homepage rdf:resource="${ h.url_for(controller='package',action='read',id=c.pkg_dict['name'], qualified=True)}"/> |
|
<rdfs:label>${c.pkg_dict['name']}</rdfs:label> |
<rdfs:label>${c.pkg_dict['name']}</rdfs:label> |
|
|
|
|
<py:for each="rsc_dict in c.pkg_dict['resources']"> |
<py:for each="rsc_dict in c.pkg_dict['resources']"> |
<dcat:distribution> |
<dcat:distribution> |
<dcat:Distribution> |
<dcat:Distribution> |
<dct:title>${rsc_dict.get('name')}</dct:title> |
<dct:title>${rsc_dict.get('name')}</dct:title> |
<owl:sameAs rdf:resource="urn:uuid:${rsc_dict.get('id')}"/> |
<owl:sameAs rdf:resource="urn:uuid:${rsc_dict.get('id')}"/> |
<dct:description>${rsc_dict.get('description')}</dct:description> |
<dct:description>${rsc_dict.get('description')}</dct:description> |
<dcat:accessURL rdf:resource="${ rsc_dict.get('url') }"/> |
<dcat:accessURL rdf:resource="${ rsc_dict.get('url') }"/> |
<dct:created>${rsc_dict.get('revision_timestamp')}</dct:created> |
<dct:created>${rsc_dict.get('revision_timestamp')}</dct:created> |
<dct:modified>${rsc_dict.get('revision_timestamp')}</dct:modified> |
<dct:modified>${rsc_dict.get('revision_timestamp')}</dct:modified> |
<dcat:byteSize>${rsc_dict.get('size')}</dcat:byteSize> |
<dcat:byteSize py:if="rsc_dict.get('size')">${rsc_dict.get('size')}</dcat:byteSize> |
<dcat:mediaType>${rsc_dict.get('mimetype')}</dcat:mediaType> |
<dcat:mediaType py:if="rsc_dict.get('mimetype')">${rsc_dict.get('mimetype')}</dcat:mediaType> |
<dct:extent py:if="rsc_dict.get('size')">${rsc_dict.get('size')} bytes</dct:extent> |
<dct:extent py:if="rsc_dict.get('size')">${rsc_dict.get('size')} bytes</dct:extent> |
<dct:format py:if="rsc_dict.get('format')"> |
<dct:format py:if="rsc_dict.get('format')"> |
<dct:IMT> |
<dct:IMT> |
<rdf:value>${rsc_dict.get('format')}</rdf:value> |
<rdf:value>${rsc_dict.get('format')}</rdf:value> |
<rdfs:label>${rsc_dict.get('format')}</rdfs:label> |
<rdfs:label>${rsc_dict.get('format')}</rdfs:label> |
</dct:IMT> |
</dct:IMT> |
</dct:format> |
</dct:format> |
<dct:title py:if="rsc_dict.get('name')">${rsc_dict.get('name')}</dct:title> |
<dct:title py:if="rsc_dict.get('name')">${rsc_dict.get('name')}</dct:title> |
</dcat:Distribution> |
</dcat:Distribution> |
</dcat:distribution> |
</dcat:distribution> |
</py:for> |
</py:for> |
<dct:publisher py:if="c.pkg_dict.get('organization', None)"> |
<dct:publisher py:if="c.pkg_dict.get('organization', None)"> |
<rdf:Description> |
<rdf:Description> |
<foaf:name>${ c.pkg_dict['organization']['title'] }</foaf:name> |
<foaf:name>${ c.pkg_dict['organization']['title'] }</foaf:name> |
</rdf:Description> |
</rdf:Description> |
</dct:publisher> |
</dct:publisher> |
<dct:creator py:if="c.pkg_dict.get('author', None)"> |
<dct:creator py:if="c.pkg_dict.get('organization', None)"> |
<rdf:Description> |
<rdf:Description> |
<foaf:name>${ c.pkg_dict['author'] }</foaf:name> |
<foaf:name>${ c.pkg_dict['organization']['title'] }</foaf:name> |
<foaf:mbox py:if="c.pkg_dict.get('maintainer_email', None)" rdf:resource="mailto:${c.pkg_dict['author_email']}"/> |
|
</rdf:Description> |
</rdf:Description> |
</dct:creator> |
</dct:creator> |
<dct:contributor py:if="c.pkg_dict.get('maintainer', None)"> |
<dct:contributor |
|
py:with="username = h.get_action('package_activity_list',{'id':c.pkg_dict['id']})[0]['user_id']"> |
<rdf:Description> |
<rdf:Description> |
<foaf:name>${ c.pkg_dict['maintainer'] }</foaf:name> |
<foaf:name>${h.get_action("user_show",{"id":username})["display_name"]}</foaf:name> |
<foaf:mbox py:if="c.pkg_dict.get('maintainer_email', None)" rdf:resource="mailto:${c.pkg_dict['maintainer_email']}"/> |
<foaf:mbox py:if="h.get_action('user_show',{'id':username}).get('email', None)" |
|
rdf:resource="mailto:${h.get_action('user_show',{'id':username})['email']}"/> |
</rdf:Description> |
</rdf:Description> |
</dct:contributor> |
</dct:contributor> |
|
|
<dct:rights py:if="c.pkg_dict.get('license_url', None)" rdf:resource="${c.pkg_dict['license_url']}"/> |
<dct:rights py:if="c.pkg_dict.get('license_url', None)" rdf:resource="${c.pkg_dict['license_url']}"/> |
|
|
|
<foaf:homepage py:if="c.pkg_dict.get('DCTERMS.Source.URI')">${c.pkg_dict.get('DCTERMS.Source.URI') } |
|
</foaf:homepage> |
|
|
|
<dcat:contactPoint py:if="c.pkg_dict.get('contact_point')">${c.pkg_dict.contact_point }</dcat:contactPoint> |
|
<dct:spatial py:if="c.pkg_dict.get('spatial_coverage')">${ c.pkg_dict.spatial_coverage }</dct:spatial> |
|
<dct:spatial py:if="c.pkg_dict.get('Geospatial Coverage')">${ c.pkg_dict.get('Geospatial Coverage') }</dct:spatial> |
|
<aglsterms:AglsJuri py:if="c.pkg_dict.get('jurisdiction')">${ c.pkg_dict.jurisdiction }</aglsterms:AglsJuri> |
|
<aglsterms:AglsJuri py:if="c.pkg_dict.get('AGLSTERMS.Jurisdiction')">${ c.pkg_dict.get('AGLSTERMS.Jurisdiction') }</aglsterms:AglsJuri> |
|
<dct:temporal py:if="c.pkg_dict.temporal_coverage">${ c.pkg_dict.temporal_coverage }</dct:temporal> |
|
<dct:temporal py:if="c.pkg_dict.get('Temporal Coverage')">${ c.pkg_dict.get('Temporal Coverage') }</dct:temporal> |
|
<dct:relation py:if="c.pkg_dict.get('data_state')"> |
|
<rdf:Description> |
|
<rdfs:label>Data State</rdfs:label> |
|
<rdf:value>${ c.pkg_dict.get('data_state') }</rdf:value> |
|
</rdf:Description> |
|
</dct:relation> |
|
|
|
<dct:relation py:if="c.pkg_dict.get('update_freq')"> |
|
<rdf:Description> |
|
<rdfs:label>Update Frequency</rdfs:label> |
|
<rdf:value>${ c.pkg_dict.get('update_freq') }</rdf:value> |
|
</rdf:Description> |
|
</dct:relation> |
|
<dct:relation py:if="c.pkg_dict.get('Update Frequency')"> |
|
<rdf:Description> |
|
<rdfs:label>Update Frequency</rdfs:label> |
|
<rdf:value>${ c.pkg_dict.get('Update Frequency') }</rdf:value> |
|
</rdf:Description> |
|
</dct:relation> |
|
|
|
<dct:relation py:if="c.pkg_dict.get('Agency Program')"> |
|
<rdf:Description> |
|
<rdfs:label>Agency Program</rdfs:label> |
|
<rdf:value>${ c.pkg_dict.get('Agency Program') }</rdf:value> |
|
</rdf:Description> |
|
</dct:relation> |
|
<dct:relation py:if="c.pkg_dict.get('agency_program')"> |
|
<rdf:Description> |
|
<rdfs:label>Agency Program</rdfs:label> |
|
<rdf:value>${ c.pkg_dict.get('agency_program') }</rdf:value> |
|
</rdf:Description> |
|
</dct:relation> |
|
|
|
<dct:relation py:if="c.pkg_dict.get('Granularity')"> |
|
<rdf:Description> |
|
<rdfs:label>Data Granularity</rdfs:label> |
|
<rdf:value>${ c.pkg_dict.get('Granularity') }</rdf:value> |
|
</rdf:Description> |
|
</dct:relation> |
|
<dct:relation py:if="c.pkg_dict.get('granularity')"> |
|
<rdf:Description> |
|
<rdfs:label>Data Granularity</rdfs:label> |
|
<rdf:value>${ c.pkg_dict.get('granularity') }</rdf:value> |
|
</rdf:Description> |
|
</dct:relation> |
|
|
<py:for each="extra_dict in c.pkg_dict.get('extras',[])"> |
<py:for each="extra_dict in c.pkg_dict.get('extras',[])"> |
<dct:relation> |
<dct:relation> |
<rdf:Description> |
<rdf:Description> |
<rdfs:label>${extra_dict.get('key','')}</rdfs:label> |
<rdfs:label>${extra_dict.get('key','')}</rdfs:label> |
<rdf:value>${extra_dict.get('value','')}</rdf:value> |
<rdf:value>${extra_dict.get('value','')}</rdf:value> |
</rdf:Description> |
</rdf:Description> |
</dct:relation> |
</dct:relation> |
</py:for> |
</py:for> |
</dcat:Dataset> |
</dcat:Dataset> |
</rdf:RDF> |
</rdf:RDF> |
|
|