问题描述
我目前正在从以下gndo / rdf转换为tei:person
<?xml version="1.0" encoding="UTF-8"?><rdf:RDF xmlns:schema="http://schema.org/" xmlns:gndo="http://d-nb.info/standards/elementset/gnd#" xmlns:lib="http://purl.org/library/" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:xsd="http://www.w3.org/2001/XMLSchema#" xmlns:skos="http://www.w3.org/2004/02/skos/core#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:editeur="https://ns.editeur.org/thema/" xmlns:geo="http://www.opengis.net/ont/geosparql#" xmlns:umbel="http://umbel.org/umbel#" xmlns:rdau="http://rdaregistry.info/Elements/u/" xmlns:sf="http://www.opengis.net/ont/sf#" xmlns:bflc="http://id.loc.gov/ontologies/bflc/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:vivo="http://vivoweb.org/ontology/core#" xmlns:isbd="http://iflastandards.info/ns/isbd/elements/" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:mo="http://purl.org/ontology/mo/" xmlns:marcRole="http://id.loc.gov/vocabulary/relators/" xmlns:dnba="http://d-nb.info/standards/elementset/agrelon#" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:dbp="http://dbpedia.org/property/" xmlns:dnbt="http://d-nb.info/standards/elementset/dnb#" xmlns:madsrdf="http://www.loc.gov/mads/rdf/v1#" xmlns:dnb_intern="http://dnb.de/" xmlns:v="http://www.w3.org/2006/vcard/ns#" xmlns:wdrs="http://www.w3.org/2007/05/powder-s#" xmlns:ebu="http://www.ebu.ch/Metadata/ontologies/ebucore/ebucore#" xmlns:bibo="http://purl.org/ontology/bibo/" xmlns:gbv="http://purl.org/ontology/gbv/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-Syntax-ns#"><rdf:Description xmlns:gndo="https://d-nb.info/standards/elementset/gnd#" xmlns:agrelon="https://d-nb.info/standards/elementset/agrelon#" xmlns:dnbt="https://d-nb.info/standards/elementset/dnb#" rdf:about="https://d-nb.info/gnd/100002307">
<rdf:type rdf:resource="https://d-nb.info/standards/elementset/gnd#DifferentiatedPerson"/>
<wdrs:describedby>
<rdf:Description rdf:about="https://d-nb.info/gnd/100002307/about">
<dcterms:license rdf:resource="http://creativecommons.org/publicdomain/zero/1.0/"/>
<dcterms:modified rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2016-04-08T16:43:48.000</dcterms:modified>
</rdf:Description>
</wdrs:describedby>
<gndo:gndIdentifier rdf:datatype="http://www.w3.org/2001/XMLSchema#string">100002307</gndo:gndIdentifier>
<foaf:page rdf:resource="https://de.wikipedia.org/wiki/Jacques_Abbadie"/>
<owl:sameAs rdf:resource="http://dbpedia.org/resource/Jakob_Abbadie"/>
<owl:sameAs rdf:resource="http://viaf.org/viaf/9878598"/>
<owl:sameAs rdf:resource="http://isni.org/isni/0000000083391828"/>
<owl:sameAs rdf:resource="http://www.wikidata.org/entity/Q518333"/>
<owl:sameAs rdf:resource="http://id.loc.gov/rwo/agents/n84177231"/>
<gndo:oldAuthorityNumber rdf:datatype="http://www.w3.org/2001/XMLSchema#string">(DE-588a)100002307</gndo:oldAuthorityNumber>
<gndo:variantNameForThePerson rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Boher,Pierre</gndo:variantNameForThePerson>
<gndo:variantNameEntityForThePerson>
<rdf:Description rdf:nodeID="node1egnjs5ntx2230761">
<gndo:forename rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Pierre</gndo:forename>
<gndo:surname rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Boher</gndo:surname>
</rdf:Description>
</gndo:variantNameEntityForThePerson>
<gndo:variantNameForThePerson rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Abbadie,...</gndo:variantNameForThePerson>
<gndo:variantNameEntityForThePerson>
<rdf:Description rdf:nodeID="node1egnjs5ntx2230762">
<gndo:forename rdf:datatype="http://www.w3.org/2001/XMLSchema#string">...</gndo:forename>
<gndo:surname rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Abbadie</gndo:surname>
</rdf:Description>
</gndo:variantNameEntityForThePerson>
<gndo:variantNameForThePerson rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Abbadie,Jacobi</gndo:variantNameForThePerson>
<gndo:variantNameEntityForThePerson>
<rdf:Description rdf:nodeID="node1egnjs5ntx2230763">
<gndo:forename rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Jacobi</gndo:forename>
<gndo:surname rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Abbadie</gndo:surname>
</rdf:Description>
</gndo:variantNameEntityForThePerson>
<gndo:variantNameForThePerson rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Abbadie,Jaques</gndo:variantNameForThePerson>
<gndo:variantNameEntityForThePerson>
<rdf:Description rdf:nodeID="node1egnjs5ntx2230764">
<gndo:forename rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Jaques</gndo:forename>
<gndo:surname rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Abbadie</gndo:surname>
</rdf:Description>
</gndo:variantNameEntityForThePerson>
<gndo:variantNameForThePerson rdf:datatype="http://www.w3.org/2001/XMLSchema#string">J. A.</gndo:variantNameForThePerson>
<gndo:variantNameEntityForThePerson>
<rdf:Description rdf:nodeID="node1egnjs5ntx2230765">
<gndo:personalName rdf:datatype="http://www.w3.org/2001/XMLSchema#string">J. A.</gndo:personalName>
</rdf:Description>
</gndo:variantNameEntityForThePerson>
<gndo:variantNameForThePerson rdf:datatype="http://www.w3.org/2001/XMLSchema#string">A.,J.</gndo:variantNameForThePerson>
<gndo:variantNameEntityForThePerson>
<rdf:Description rdf:nodeID="node1egnjs5ntx2230766">
<gndo:forename rdf:datatype="http://www.w3.org/2001/XMLSchema#string">J.</gndo:forename>
<gndo:surname rdf:datatype="http://www.w3.org/2001/XMLSchema#string">A.</gndo:surname>
</rdf:Description>
</gndo:variantNameEntityForThePerson>
<gndo:variantNameForThePerson rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Abbadie,Jacob</gndo:variantNameForThePerson>
<gndo:variantNameEntityForThePerson>
<rdf:Description rdf:nodeID="node1egnjs5ntx2230767">
<gndo:forename rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Jacob</gndo:forename>
<gndo:surname rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Abbadie</gndo:surname>
</rdf:Description>
</gndo:variantNameEntityForThePerson>
<gndo:preferrednameForThePerson rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Abbadie,Jacques</gndo:preferrednameForThePerson>
<gndo:preferrednameEntityForThePerson>
<rdf:Description rdf:nodeID="node1egnjs5ntx2230768">
<gndo:forename rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Jacques</gndo:forename>
<gndo:surname rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Abbadie</gndo:surname>
</rdf:Description>
</gndo:preferrednameEntityForThePerson>
<gndo:professionorOccupation rdf:resource="https://d-nb.info/gnd/4059756-8"/>
<gndo:geographicAreaCode rdf:resource="https://d-nb.info/standards/vocab/gnd/geographic-area-code#XA-FR"/>
<gndo:publication rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Abbadie,Jacques: L' art de se connoitre soy-meme. - 1692</gndo:publication>
<gndo:publication rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Abbadie,Jacques: L' art de se connoitre soy-meme. - 1749</gndo:publication>
<gndo:publication rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Abbadie,Jacques: L' art de se connoitre soy-meme. - 1760</gndo:publication>
<gndo:publication rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Abbadie,Jacques: Traité de la divinité de ... Jesus Christ.. - 1729</gndo:publication>
<gndo:publication rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Abbadie,Jacques: Les droits de Dieu,de la nature et des gens. - 1775</gndo:publication>
<gndo:publication rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Abbadie,Jacques: Le triomphe de la providence et de la religion. - 1723</gndo:publication>
<gndo:publication rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Abbadie,Jacques: Traité de la verité de la religion chretienne. - 1729</gndo:publication>
<gndo:publication rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Abbadie,Jacques: Traité de la verité de la religion chretienne. - 1750</gndo:publication>
<gndo:publication rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Abbadie,Jacques: Die Kunst,sich selbst zu kennen. - 1712</gndo:publication>
<gndo:publication rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Abbadie,Jacques: Gründlicher Tractat von der Wahrheit u. Gewißheit der christl. Religion. - 1739</gndo:publication>
<gndo:biographicalOrHistoricalinformation xml:lang="de">Franz. ref. Theologe,bedeutender Redner,Prediger der franz. Gemeinde in Berlin u.a.,apologet. Schriftsteller</gndo:biographicalOrHistoricalinformation>
<gndo:biographicalOrHistoricalinformation xml:lang="de">Theologe</gndo:biographicalOrHistoricalinformation>
<gndo:gender rdf:resource="https://d-nb.info/standards/vocab/gnd/gender#male"/>
<gndo:dateOfBirth rdf:datatype="http://www.w3.org/2001/XMLSchema#gYear">1654</gndo:dateOfBirth>
<gndo:dateOfDeath rdf:datatype="http://www.w3.org/2001/XMLSchema#gYear">1727</gndo:dateOfDeath>
</rdf:Description><rdf:Description xmlns:gndo="https://d-nb.info/standards/elementset/gnd#" xmlns:agrelon="https://d-nb.info/standards/elementset/agrelon#" xmlns:dnbt="https://d-nb.info/standards/elementset/dnb#" rdf:about="https://d-nb.info/gnd/100002307/about">
<dcterms:license rdf:resource="http://creativecommons.org/publicdomain/zero/1.0/"/>
<dcterms:modified rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2016-04-08T16:43:48.000</dcterms:modified>
</rdf:Description><rdf:Description xmlns:gndo="https://d-nb.info/standards/elementset/gnd#" xmlns:agrelon="https://d-nb.info/standards/elementset/agrelon#" xmlns:dnbt="https://d-nb.info/standards/elementset/dnb#" rdf:nodeID="node1egnjs5ntx2230761">
<gndo:forename rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Pierre</gndo:forename>
<gndo:surname rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Boher</gndo:surname>
</rdf:Description><rdf:Description xmlns:gndo="https://d-nb.info/standards/elementset/gnd#" xmlns:agrelon="https://d-nb.info/standards/elementset/agrelon#" xmlns:dnbt="https://d-nb.info/standards/elementset/dnb#" rdf:nodeID="node1egnjs5ntx2230762">
<gndo:forename rdf:datatype="http://www.w3.org/2001/XMLSchema#string">...</gndo:forename>
<gndo:surname rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Abbadie</gndo:surname>
</rdf:Description><rdf:Description xmlns:gndo="https://d-nb.info/standards/elementset/gnd#" xmlns:agrelon="https://d-nb.info/standards/elementset/agrelon#" xmlns:dnbt="https://d-nb.info/standards/elementset/dnb#" rdf:nodeID="node1egnjs5ntx2230763">
<gndo:forename rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Jacobi</gndo:forename>
<gndo:surname rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Abbadie</gndo:surname>
</rdf:Description><rdf:Description xmlns:gndo="https://d-nb.info/standards/elementset/gnd#" xmlns:agrelon="https://d-nb.info/standards/elementset/agrelon#" xmlns:dnbt="https://d-nb.info/standards/elementset/dnb#" rdf:nodeID="node1egnjs5ntx2230764">
<gndo:forename rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Jaques</gndo:forename>
<gndo:surname rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Abbadie</gndo:surname>
</rdf:Description><rdf:Description xmlns:gndo="https://d-nb.info/standards/elementset/gnd#" xmlns:agrelon="https://d-nb.info/standards/elementset/agrelon#" xmlns:dnbt="https://d-nb.info/standards/elementset/dnb#" rdf:nodeID="node1egnjs5ntx2230765">
<gndo:personalName rdf:datatype="http://www.w3.org/2001/XMLSchema#string">J. A.</gndo:personalName>
</rdf:Description><rdf:Description xmlns:gndo="https://d-nb.info/standards/elementset/gnd#" xmlns:agrelon="https://d-nb.info/standards/elementset/agrelon#" xmlns:dnbt="https://d-nb.info/standards/elementset/dnb#" rdf:nodeID="node1egnjs5ntx2230766">
<gndo:forename rdf:datatype="http://www.w3.org/2001/XMLSchema#string">J.</gndo:forename>
<gndo:surname rdf:datatype="http://www.w3.org/2001/XMLSchema#string">A.</gndo:surname>
</rdf:Description><rdf:Description xmlns:gndo="https://d-nb.info/standards/elementset/gnd#" xmlns:agrelon="https://d-nb.info/standards/elementset/agrelon#" xmlns:dnbt="https://d-nb.info/standards/elementset/dnb#" rdf:nodeID="node1egnjs5ntx2230767">
<gndo:forename rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Jacob</gndo:forename>
<gndo:surname rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Abbadie</gndo:surname>
</rdf:Description><rdf:Description xmlns:gndo="https://d-nb.info/standards/elementset/gnd#" xmlns:agrelon="https://d-nb.info/standards/elementset/agrelon#" xmlns:dnbt="https://d-nb.info/standards/elementset/dnb#" rdf:nodeID="node1egnjs5ntx2230768">
<gndo:forename rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Jacques</gndo:forename>
<gndo:surname rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Abbadie</gndo:surname>
</rdf:Description></rdf:RDF>
我尝试了以下名称和硬编码的xml:id:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:tei="http://www.tei-c.org/ns/1.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:mets="http://www.loc.gov/METS/"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:exist="http://exist.sourceforge.net/NS/exist"
xmlns:gndo="http://d-nb.info/standards/elementset/gnd#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-Syntax-ns#"
exclude-result-prefixes="tei exist mets xlink rdf"
version="3.0">
<xsl:template match="/rdf:RDF/gndo:gndIdentifier">
<tei:person xml:id="100002307">
<tei:forename>Jacques</tei:forename>
<tei:surname>Abbadie</tei:surname>
</tei:person>
</xsl:template>
</xsl:stylesheet>
我期望输出如下所示
<person xml:id="100002307">
<forename>Jacques</forename>
<surname>Abbadie </surname>
</person>
<forename>
等将分别替换为gndo:gndPreferrednameEntityForThePerson/rdf:Description/gndo:forename
或gndo:surname
。这只是一个示例文件,我还没有数清最后我将有多少个<person>
元素。
有人可以向我提示错误的方向吗? 祝一切顺利, K
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)