Skip to content

Commit

Permalink
Correct isMemberOfMADSScheme typo.
Browse files Browse the repository at this point in the history
Rebased commit from @dbs -- thank you! Fixes #100.
  • Loading branch information
wafschneider committed Feb 15, 2019
1 parent a1f10e0 commit ec2c9aa
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion test/ConvSpec-1XX,6XX,7XX,8XX-names.xspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<x:expect label="...with rdfs:label composed according to Name processing rules" test="//bf:Work[1]/bf:subject[1]/bf:Agent/rdfs:label = 'Nixon, Richard M. (Richard Milhouse), 1913-'"/>
<x:expect label="...it also has a Class from MADSRDF" test="//bf:Work[1]/bf:subject[1]/bf:Agent/rdf:type[2]/@rdf:resource = 'http://www.loc.gov/mads/rdf/v1#ComplexSubject'"/>
<x:expect label="...and a madsrdf:authoritativeLabel property" test="//bf:Work[1]/bf:subject[1]/bf:Agent/madsrdf:authoritativeLabel = 'Nixon, Richard M. (Richard Milhouse), 1913---Psychology.'"/>
<x:expect label="...and a madsrdf:isMemberofMADSScheme property" test="//bf:Work[1]/bf:subject[1]/bf:Agent/madsrdf:isMemberofMADSScheme/@rdf:resource = 'http://id.loc.gov/authorities/subjects'"/>
<x:expect label="...and a madsrdf:isMemberOfMADSScheme property" test="//bf:Work[1]/bf:subject[1]/bf:Agent/madsrdf:isMemberOfMADSScheme/@rdf:resource = 'http://id.loc.gov/authorities/subjects'"/>
<x:expect label="...ind2 creates a source property of the Agent" test="//bf:Work[1]/bf:subject[1]/bf:Agent/bf:source/bf:Source/bf:code = 'lcsh'"/>
<x:expect label="600,610,611 with $t creates a subject/Work property of the Work" test="count(//bf:Work[1]/bf:subject/bf:Work) = 1"/>
<x:expect label="...with contribution from Name portion of field" test="//bf:Work[1]/bf:subject[2]/bf:Work/bf:contribution/bf:Contribution/bf:agent/bf:Agent/rdfs:label = 'Bellamy, Edward, 1850-1898.'"/>
Expand Down
12 changes: 6 additions & 6 deletions test/marc2bibframe2.xspec
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@
<rdf:type rdf:resource="http://www.loc.gov/mads/rdf/v1#ComplexSubject"/>
<rdfs:label>Jazz--1951-1960.</rdfs:label>
<madsrdf:authoritativeLabel>Jazz--1951-1960.</madsrdf:authoritativeLabel>
<madsrdf:isMemberofMADSScheme rdf:resource="http://id.loc.gov/authorities/subjects"/>
<madsrdf:isMemberOfMADSScheme rdf:resource="http://id.loc.gov/authorities/subjects"/>
<madsrdf:componentList rdf:parseType="Collection">
<madsrdf:Topic>
<madsrdf:authoritativeLabel>Jazz</madsrdf:authoritativeLabel>
Expand All @@ -338,7 +338,7 @@
<rdf:type rdf:resource="http://www.loc.gov/mads/rdf/v1#Topic"/>
<rdfs:label>Piano with jazz ensemble.</rdfs:label>
<madsrdf:authoritativeLabel>Piano with jazz ensemble.</madsrdf:authoritativeLabel>
<madsrdf:isMemberofMADSScheme rdf:resource="http://id.loc.gov/authorities/subjects"/>
<madsrdf:isMemberOfMADSScheme rdf:resource="http://id.loc.gov/authorities/subjects"/>
<bf:source>
<bf:Source>
<bf:code>lcsh</bf:code>
Expand Down Expand Up @@ -611,7 +611,7 @@
<rdf:type rdf:resource="http://id.loc.gov/ontologies/bibframe/Organization"/>
<rdf:type rdf:resource="http://www.loc.gov/mads/rdf/v1#CorporateName"/>
<madsrdf:authoritativeLabel>White House (Washington, D.C.)</madsrdf:authoritativeLabel>
<madsrdf:isMemberofMADSScheme rdf:resource="http://id.loc.gov/authorities/subjects"/>
<madsrdf:isMemberOfMADSScheme rdf:resource="http://id.loc.gov/authorities/subjects"/>
<bf:source>
<bf:Source>
<bf:code>lcsh</bf:code>
Expand All @@ -627,7 +627,7 @@
<rdf:type rdf:resource="http://id.loc.gov/ontologies/bibframe/Jurisdiction"/>
<rdf:type rdf:resource="http://www.loc.gov/mads/rdf/v1#CorporateName"/>
<madsrdf:authoritativeLabel>United States. Executive Office of the President.</madsrdf:authoritativeLabel>
<madsrdf:isMemberofMADSScheme rdf:resource="http://id.loc.gov/authorities/subjects"/>
<madsrdf:isMemberOfMADSScheme rdf:resource="http://id.loc.gov/authorities/subjects"/>
<bf:source>
<bf:Source>
<bf:code>lcsh</bf:code>
Expand All @@ -643,7 +643,7 @@
<rdf:type rdf:resource="http://id.loc.gov/ontologies/bibframe/Jurisdiction"/>
<rdf:type rdf:resource="http://www.loc.gov/mads/rdf/v1#CorporateName"/>
<madsrdf:authoritativeLabel>United States. Office of the Vice President.</madsrdf:authoritativeLabel>
<madsrdf:isMemberofMADSScheme rdf:resource="http://id.loc.gov/authorities/subjects"/>
<madsrdf:isMemberOfMADSScheme rdf:resource="http://id.loc.gov/authorities/subjects"/>
<bf:source>
<bf:Source>
<bf:code>lcsh</bf:code>
Expand All @@ -659,7 +659,7 @@
<rdf:type rdf:resource="http://id.loc.gov/ontologies/bibframe/Jurisdiction"/>
<rdf:type rdf:resource="http://www.loc.gov/mads/rdf/v1#CorporateName"/>
<madsrdf:authoritativeLabel>United States. Office of the First Lady.</madsrdf:authoritativeLabel>
<madsrdf:isMemberofMADSScheme rdf:resource="http://id.loc.gov/authorities/subjects"/>
<madsrdf:isMemberOfMADSScheme rdf:resource="http://id.loc.gov/authorities/subjects"/>
<bf:source>
<bf:Source>
<bf:code>lcsh</bf:code>
Expand Down
8 changes: 4 additions & 4 deletions xsl/ConvSpec-1XX,6XX,7XX,8XX-names.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@
<xsl:value-of select="$vMADSLabel"/>
</madsrdf:authoritativeLabel>
<xsl:for-each select="$subjectThesaurus/subjectThesaurus/subject[@ind2=current()/@ind2]/madsscheme">
<madsrdf:isMemberofMADSScheme>
<madsrdf:isMemberOfMADSScheme>
<xsl:attribute name="rdf:resource"><xsl:value-of select="."/></xsl:attribute>
</madsrdf:isMemberofMADSScheme>
</madsrdf:isMemberOfMADSScheme>
</xsl:for-each>
<xsl:if test="$vSource != ''">
<xsl:copy-of select="$vSource"/>
Expand Down Expand Up @@ -752,9 +752,9 @@
</madsrdf:authoritativeLabel>
</xsl:if>
<xsl:for-each select="$subjectThesaurus/subjectThesaurus/subject[@ind2=current()/@ind2]/madsscheme">
<madsrdf:isMemberofMADSScheme>
<madsrdf:isMemberOfMADSScheme>
<xsl:attribute name="rdf:resource"><xsl:value-of select="."/></xsl:attribute>
</madsrdf:isMemberofMADSScheme>
</madsrdf:isMemberOfMADSScheme>
</xsl:for-each>
</xsl:if>
<xsl:if test="$pSource != ''">
Expand Down
4 changes: 2 additions & 2 deletions xsl/ConvSpec-240andX30-UnifTitle.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@
</rdf:type>
<madsrdf:authoritativeLabel><xsl:value-of select="$vMADSLabel"/></madsrdf:authoritativeLabel>
<xsl:for-each select="$subjectThesaurus/subjectThesaurus/subject[@ind2=current()/@ind2]/madsscheme">
<madsrdf:isMemberofMADSScheme>
<madsrdf:isMemberOfMADSScheme>
<xsl:attribute name="rdf:resource"><xsl:value-of select="."/></xsl:attribute>
</madsrdf:isMemberofMADSScheme>
</madsrdf:isMemberOfMADSScheme>
</xsl:for-each>
<xsl:if test="$vSource != ''">
<xsl:copy-of select="$vSource"/>
Expand Down
4 changes: 2 additions & 2 deletions xsl/ConvSpec-648-662.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@
<xsl:value-of select="$vLabel"/>
</madsrdf:authoritativeLabel>
<xsl:for-each select="$subjectThesaurus/subjectThesaurus/subject[@ind2=current()/@ind2]/madsscheme">
<madsrdf:isMemberofMADSScheme>
<madsrdf:isMemberOfMADSScheme>
<xsl:attribute name="rdf:resource"><xsl:value-of select="."/></xsl:attribute>
</madsrdf:isMemberofMADSScheme>
</madsrdf:isMemberOfMADSScheme>
</xsl:for-each>
<!-- build the ComplexSubject -->
<xsl:if test="$vMADSClass='ComplexSubject'">
Expand Down

0 comments on commit ec2c9aa

Please sign in to comment.