pycsw 使配置文件达到核心标准。配置文件允许其余元数据格式类型 (例如ISO 19139:2007, NASA DIF, INSPIRE等) 特定到存储库,此配置文件可以查询,也可以提交给客户端。 pycsw 支持插件体系结构,也支持运行时加载的 Python 代码。
所有的配置文件必须放在 pycsw/plugins/profiles
目录中。
pycsw/
plugins/
__init__.py # empty
profiles/ # directory to store profiles
__init__.py # empty
profile.py # defines abstract profile object (properties and methods) and functions to load plugins
apiso/ # profile directory
__init__.py # empty
apiso.py # profile code
... # supporting files, etc.
配置文件的所有代码须实例化为 profile.Profile
。下面是一个添加配置文件 Foo
的示例︰
from pycsw.plugins.profiles import profile
class FooProfile(profile.Profile):
profile.Profile.__init__(self,
name='foo',
version='1.0.3',
title='My Foo Profile',
url='http://example.org/fooprofile/docs',
namespace='http://example.org/foons',
typename='foo:RootElement',
outputschema=http://example.org/foons',
prefixes=['foo'],
model=model,
core_namespaces=namespaces,
added_namespaces={'foo': 'http://example.org/foons'}
repository=REPOSITORY['foo:RootElement'])
您的配置插件类 ( FooProfile
) 必须按照 profile.Profile
完成所有的配置工作。 配置文件方法须保持 lxml.etree.Element
类型或 None
ISO 元数据应用程序配置文件 (APISO) 是CSW 2.0.2的配置文件,是继地理空间元数据 ISO 19139:2007 和 ISO 19119:2005 之后开发的文件。
不需要其余配置。
- typename:
gmd:MD_Metadata
- outputschema:
http://www.isotc211.org/2005/gmd
APISO 包括启用 INSPIRE Discovery Services 3.0 的扩展。 若要启用 INSPIRE扩展到 APISO,需要用 enabled
set to true``在主要的配置中创建 ``[metadata:inspire]
部分
元数据:inspire
true
或 false
)euLanguageISO6392B
)inspireTheme_eng
)conformant
, notConformant
, notEvaluated
)为目标的INSPIRE级别yyyy-mm-dd
) 或多数以 ( yyyy-mm-dd/yyyy-mm-dd
)CSW-ebRIM注册服务是CSW 2.0.2的配置文件,是继ebXML 信息模型之后的地理空间元数据配置文件。
不需要其余配置。
- 类型名称: ' rim: RegistryObject '
- 输出模式: ' urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0'