ntra00 / marc2bibframe

Convert marc to BIBFRAME 1.0 - see lcnetdev/marc2bibframe2 for current release
http://www.loc.gov/bibframe/
Other
64 stars 20 forks source link

Errors converting records #1

Closed jgreben closed 11 years ago

jgreben commented 11 years ago

I am trying to convert a batch of RDA records using the saxon xquery tool, however I keep running into bad records that cause run-time errors.

java -cp $CLASSPATH net.sf.saxon.Query saxon.xqy marcxmluri=badrecord.xml baseuri=http://linked-data.stanford.edu/ serialization=rdfxml

Error on line 1047 of module.MARCXML-2-MADSRDF.xqy: XPTY0004: An empty sequence is not allowed as the @name attribute of element at marcxml2madsrdf:create-element() (file:/scripts/marc2bibframe-master/xquery/modules/module.MARCXML-2-MADSRDF.xqy#1117) at marcxml2madsrdf:create-elements-from-DFxx() (file:/scripts/marc2bibframe-master/xquery/modules/module.MARCXML-2-MADSRDF.xqy#498) at marcxml2madsrdf:marcxml2madsrdf() at marcbib2bibframe:get-subject() (file:/scripts/marc2bibframe-master/xquery/modules/module.MARCXMLBIB-2-BIBFRAME.xqy#1358) at marcbib2bibframe:generate-work() (file:/scripts/marc2bibframe-master/xquery/modules/module.MARCXMLBIB-2-BIBFRAME.xqy#372) at marcbib2bibframe:marcbib2bibframe() Query processing failed: Run-time errors were reported

I cannot see anything obvious about the xml record that would cause this, other than that the record has Hebrew characters in it, but other records with Hebrew process just fine.

based on the trace above, can anyone give me a clue where I might look in order to get these records to process?

Thanks!

kefo commented 11 years ago

Would you mind posting/emailing the MARC/XML that is giving you trouble?

Kevin

On 12/20/2012 06:52 PM, jgreben wrote:

I am trying to convert a batch of RDA records using the saxon xquery tool, however I keep running into bad records that cause run-time errors.

java -cp $CLASSPATH net.sf.saxon.Query saxon.xqy marcxmluri=badrecord.xml baseuri=http://linked-data.stanford.edu/ serialization=rdfxml

Error on line 1047 of module.MARCXML-2-MADSRDF.xqy: XPTY0004: An empty sequence is not allowed as the @name https://github.com/name attribute of element at marcxml2madsrdf:create-element() (file:/scripts/marc2bibframe-master/xquery/modules/module.MARCXML-2-MADSRDF.xqy#1117) at marcxml2madsrdf:create-elements-from-DFxx() (file:/scripts/marc2bibframe-master/xquery/modules/module.MARCXML-2-MADSRDF.xqy#498) at marcxml2madsrdf:marcxml2madsrdf() at marcbib2bibframe:get-subject() (file:/scripts/marc2bibframe-master/xquery/modules/module.MARCXMLBIB-2-BIBFRAME.xqy#1358) at marcbib2bibframe:generate-work() (file:/scripts/marc2bibframe-master/xquery/modules/module.MARCXMLBIB-2-BIBFRAME.xqy#372) at marcbib2bibframe:marcbib2bibframe() Query processing failed: Run-time errors were reported

I cannot see anything obvious about the xml record that would cause this, other than that the record has Hebrew characters in it, but other records with Hebrew process just fine.

based on the trace above, can anyone give me a clue where I might look in order to get these records to process?

Thanks!

— Reply to this email directly or view it on GitHub https://github.com/lcnetdev/marc2bibframe/issues/1.

jgreben commented 11 years ago

Keven,

Thanks for the quick response! Here you go:

Josh

On Dec 20, 2012, at 3:56 PM, Kevin Ford wrote:

Would you mind posting/emailing the MARC/XML that is giving you trouble?

Kevin

On 12/20/2012 06:52 PM, jgreben wrote:

I am trying to convert a batch of RDA records using the saxon xquery tool, however I keep running into bad records that cause run-time errors.

java -cp $CLASSPATH net.sf.saxon.Query saxon.xqy marcxmluri=badrecord.xml baseuri=http://linked-data.stanford.edu/ serialization=rdfxml

Error on line 1047 of module.MARCXML-2-MADSRDF.xqy: XPTY0004: An empty sequence is not allowed as the @name https://github.com/name attribute of element at marcxml2madsrdf:create-element() (file:/scripts/marc2bibframe-master/xquery/modules/module.MARCXML-2-MADSRDF.xqy#1117) at marcxml2madsrdf:create-elements-from-DFxx() (file:/scripts/marc2bibframe-master/xquery/modules/module.MARCXML-2-MADSRDF.xqy#498) at marcxml2madsrdf:marcxml2madsrdf() at marcbib2bibframe:get-subject() (file:/scripts/marc2bibframe-master/xquery/modules/module.MARCXMLBIB-2-BIBFRAME.xqy#1358) at marcbib2bibframe:generate-work() (file:/scripts/marc2bibframe-master/xquery/modules/module.MARCXMLBIB-2-BIBFRAME.xqy#372) at marcbib2bibframe:marcbib2bibframe() Query processing failed: Run-time errors were reported

I cannot see anything obvious about the xml record that would cause this, other than that the record has Hebrew characters in it, but other records with Hebrew process just fine.

based on the trace above, can anyone give me a clue where I might look in order to get these records to process?

Thanks!

— Reply to this email directly or view it on GitHub https://github.com/lcnetdev/marc2bibframe/issues/1.

— Reply to this email directly or view it on GitHub.

kefo commented 11 years ago

Hmm...

If it was "attached" to an email, Github might not allow those because I can't see it. Perhaps try pasting it inline with the comment/email or uploading as a Gist:

https://gist.github.com/

The latter is slightly preferred because I can programmatically access the "raw" file then, but that's hardly an imperative.

Yours, Kevin

On 12/20/2012 06:59 PM, jgreben wrote:

Keven,

Thanks for the quick response! Here you go:

Josh

On Dec 20, 2012, at 3:56 PM, Kevin Ford wrote:

Would you mind posting/emailing the MARC/XML that is giving you trouble?

Kevin

On 12/20/2012 06:52 PM, jgreben wrote:

I am trying to convert a batch of RDA records using the saxon xquery tool, however I keep running into bad records that cause run-time errors.

java -cp $CLASSPATH net.sf.saxon.Query saxon.xqy marcxmluri=badrecord.xml baseuri=http://linked-data.stanford.edu/ serialization=rdfxml

Error on line 1047 of module.MARCXML-2-MADSRDF.xqy: XPTY0004: An empty sequence is not allowed as the @name https://github.com/name attribute of element at marcxml2madsrdf:create-element()

(file:/scripts/marc2bibframe-master/xquery/modules/module.MARCXML-2-MADSRDF.xqy#1117)

at marcxml2madsrdf:create-elements-from-DFxx()

(file:/scripts/marc2bibframe-master/xquery/modules/module.MARCXML-2-MADSRDF.xqy#498)

at marcxml2madsrdf:marcxml2madsrdf() at marcbib2bibframe:get-subject()

(file:/scripts/marc2bibframe-master/xquery/modules/module.MARCXMLBIB-2-BIBFRAME.xqy#1358)

at marcbib2bibframe:generate-work()

(file:/scripts/marc2bibframe-master/xquery/modules/module.MARCXMLBIB-2-BIBFRAME.xqy#372)

at marcbib2bibframe:marcbib2bibframe() Query processing failed: Run-time errors were reported

I cannot see anything obvious about the xml record that would cause this, other than that the record has Hebrew characters in it, but other records with Hebrew process just fine.

based on the trace above, can anyone give me a clue where I might look in order to get these records to process?

Thanks!

— Reply to this email directly or view it on GitHub https://github.com/lcnetdev/marc2bibframe/issues/1.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/lcnetdev/marc2bibframe/issues/1#issuecomment-11597803.

jgreben commented 11 years ago

Yeah, I was just noticing that...

Here you go!

https://gist.github.com/4349733

Thanks again!

Josh On Dec 20, 2012, at 4:06 PM, Kevin Ford wrote:

Hmm...

If it was "attached" to an email, Github might not allow those because I can't see it. Perhaps try pasting it inline with the comment/email or uploading as a Gist:

https://gist.github.com/

The latter is slightly preferred because I can programmatically access the "raw" file then, but that's hardly an imperative.

Yours, Kevin

On 12/20/2012 06:59 PM, jgreben wrote:

Keven,

Thanks for the quick response! Here you go:

Josh

On Dec 20, 2012, at 3:56 PM, Kevin Ford wrote:

Would you mind posting/emailing the MARC/XML that is giving you trouble?

Kevin

On 12/20/2012 06:52 PM, jgreben wrote:

I am trying to convert a batch of RDA records using the saxon xquery tool, however I keep running into bad records that cause run-time errors.

java -cp $CLASSPATH net.sf.saxon.Query saxon.xqy marcxmluri=badrecord.xml baseuri=http://linked-data.stanford.edu/ serialization=rdfxml

Error on line 1047 of module.MARCXML-2-MADSRDF.xqy: XPTY0004: An empty sequence is not allowed as the @name https://github.com/name attribute of element at marcxml2madsrdf:create-element()

(file:/scripts/marc2bibframe-master/xquery/modules/module.MARCXML-2-MADSRDF.xqy#1117)

at marcxml2madsrdf:create-elements-from-DFxx()

(file:/scripts/marc2bibframe-master/xquery/modules/module.MARCXML-2-MADSRDF.xqy#498)

at marcxml2madsrdf:marcxml2madsrdf() at marcbib2bibframe:get-subject()

(file:/scripts/marc2bibframe-master/xquery/modules/module.MARCXMLBIB-2-BIBFRAME.xqy#1358)

at marcbib2bibframe:generate-work()

(file:/scripts/marc2bibframe-master/xquery/modules/module.MARCXMLBIB-2-BIBFRAME.xqy#372)

at marcbib2bibframe:marcbib2bibframe() Query processing failed: Run-time errors were reported

I cannot see anything obvious about the xml record that would cause this, other than that the record has Hebrew characters in it, but other records with Hebrew process just fine.

based on the trace above, can anyone give me a clue where I might look in order to get these records to process?

Thanks!

— Reply to this email directly or view it on GitHub https://github.com/lcnetdev/marc2bibframe/issues/1.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/lcnetdev/marc2bibframe/issues/1#issuecomment-11597803.

— Reply to this email directly or view it on GitHub.

kefo commented 11 years ago

Thanks, Josh.

The problem has been addressed, or at least the sample record you gave runs without error.

If interested, it was the 752 field, which is for a Hierarchical Georgraphic entry. We had not dealt with those in any form, really. Until now.

Also - great record. We'd not seen an example with a 264, so there is now support for those too. Glad to see the 880s working nicely; you record included a number of them.

Yours,

Kevin

On 12/20/2012 07:09 PM, jgreben wrote:

Yeah, I was just noticing that...

Here you go!

https://gist.github.com/4349733

Thanks again!

Josh On Dec 20, 2012, at 4:06 PM, Kevin Ford wrote:

Hmm...

If it was "attached" to an email, Github might not allow those because I can't see it. Perhaps try pasting it inline with the comment/email or uploading as a Gist:

https://gist.github.com/

The latter is slightly preferred because I can programmatically access the "raw" file then, but that's hardly an imperative.

Yours, Kevin

On 12/20/2012 06:59 PM, jgreben wrote:

Keven,

Thanks for the quick response! Here you go:

Josh

On Dec 20, 2012, at 3:56 PM, Kevin Ford wrote:

Would you mind posting/emailing the MARC/XML that is giving you trouble?

Kevin

On 12/20/2012 06:52 PM, jgreben wrote:

I am trying to convert a batch of RDA records using the saxon xquery tool, however I keep running into bad records that cause run-time errors.

java -cp $CLASSPATH net.sf.saxon.Query saxon.xqy marcxmluri=badrecord.xml baseuri=http://linked-data.stanford.edu/ serialization=rdfxml

Error on line 1047 of module.MARCXML-2-MADSRDF.xqy: XPTY0004: An empty sequence is not allowed as the @name https://github.com/name attribute of element at marcxml2madsrdf:create-element()

(file:/scripts/marc2bibframe-master/xquery/modules/module.MARCXML-2-MADSRDF.xqy#1117)

at marcxml2madsrdf:create-elements-from-DFxx()

(file:/scripts/marc2bibframe-master/xquery/modules/module.MARCXML-2-MADSRDF.xqy#498)

at marcxml2madsrdf:marcxml2madsrdf() at marcbib2bibframe:get-subject()

(file:/scripts/marc2bibframe-master/xquery/modules/module.MARCXMLBIB-2-BIBFRAME.xqy#1358)

at marcbib2bibframe:generate-work()

(file:/scripts/marc2bibframe-master/xquery/modules/module.MARCXMLBIB-2-BIBFRAME.xqy#372)

at marcbib2bibframe:marcbib2bibframe() Query processing failed: Run-time errors were reported

I cannot see anything obvious about the xml record that would cause this, other than that the record has Hebrew characters in it, but other records with Hebrew process just fine.

based on the trace above, can anyone give me a clue where I might look in order to get these records to process?

Thanks!

— Reply to this email directly or view it on GitHub https://github.com/lcnetdev/marc2bibframe/issues/1.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub

https://github.com/lcnetdev/marc2bibframe/issues/1#issuecomment-11597803.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/lcnetdev/marc2bibframe/issues/1#issuecomment-11598049.

jgreben commented 11 years ago

Kevin,

Here is another bad record:

https://gist.github.com/4355185.git

Error on line 1138 of module.MARCXMLBIB-2-BIBFRAME.xqy: XPTY0004: An empty sequence is not allowed as the first argument of marcbib2bibframe:get-name() at marcbib2bibframe:generate-related-work() (file:/usr/share/doc/apache-jena-2.7.4/scripts/marc2bibframe-master/xquery/modules/module.MARCXMLBIB-2-BIBFRAME.xqy#1219) at marcbib2bibframe:related-works() (file:/usr/share/doc/apache-jena-2.7.4/scripts/marc2bibframe-master/xquery/modules/module.MARCXMLBIB-2-BIBFRAME.xqy#1489) at marcbib2bibframe:generate-work() (file:/usr/share/doc/apache-jena-2.7.4/scripts/marc2bibframe-master/xquery/modules/module.MARCXMLBIB-2-BIBFRAME.xqy#377) at marcbib2bibframe:marcbib2bibframe() Query processing failed: Run-time errors were reported

We have around 20K RDA records. I can keep sending you the bad records as I find them. It is likely that we will find most of the error cases after finding a few bad records, but let me know if you think there is a better way. (Maybe a try/catch statement in the xquery?)

Thanks!

Josh

kefo commented 11 years ago

Hi Josh,

Fixed.

I could do try/catches, but, for better or for worse, I prefer to do it without try/catches mainly because this way we find the errors and can fix them.

Keep 'em coming.

How many do you figure you've processed before hitting an error?

Yours, Kevin

On 12/21/2012 02:45 PM, jgreben wrote:

Kevin,

Here is another bad record:

https://gist.github.com/4355185.git

Error on line 1138 of module.MARCXMLBIB-2-BIBFRAME.xqy: XPTY0004: An empty sequence is not allowed as the first argument of marcbib2bibframe:get-name() at marcbib2bibframe:generate-related-work() (file:/usr/share/doc/apache-jena-2.7.4/scripts/marc2bibframe-master/xquery/modules/module.MARCXMLBIB-2-BIBFRAME.xqy#1219) at marcbib2bibframe:related-works() (file:/usr/share/doc/apache-jena-2.7.4/scripts/marc2bibframe-master/xquery/modules/module.MARCXMLBIB-2-BIBFRAME.xqy#1489) at marcbib2bibframe:generate-work() (file:/usr/share/doc/apache-jena-2.7.4/scripts/marc2bibframe-master/xquery/modules/module.MARCXMLBIB-2-BIBFRAME.xqy#377) at marcbib2bibframe:marcbib2bibframe() Query processing failed: Run-time errors were reported

We have around 20K RDA records. I can keep sending you the bad records as I find them. It is likely that we will find most of the error cases after finding a few bad records, but let me know if you think there is a better way. (Maybe a try/catch statement in the xquery?)

Thanks!

Josh

— Reply to this email directly or view it on GitHub https://github.com/lcnetdev/marc2bibframe/issues/1#issuecomment-11624854.

jgreben commented 11 years ago

Thanks Kevin!

I split the 20K records up into thirds and tried processing the first third of the set. I got an error in the first third and I repeated the split into another set of three. I kept doing that until I got down to the first 28 records, which had an error.

However, now with the two fixes you made I have successfully processed over 2200 records, but there are still errors in the first third of the set. This is what I get when I try to process the first 6850 records:

java -cp $CLASSPATH net.sf.saxon.Query saxon.xqy marcxmluri=rdamarc_1_3.xml baseuri=http://linked-data.stanford.edu/ serialization=rdfxml Error on line 1661 of module.MARCXML-2-MADSRDF.xqy: XPTY0004: An empty sequence is not allowed as the result of function marcxml2madsrdf:get-authority-type() at marcxml2madsrdf:get-authority-type() (file:/usr/share/doc/apache-jena-2.7.4/scripts/marc2bibframe-master/xquery/modules/module.MARCXML-2-MADSRDF.xqy#488) at marcxml2madsrdf:marcxml2madsrdf() at marcbib2bibframe:get-subject() (file:/usr/share/doc/apache-jena-2.7.4/scripts/marc2bibframe-master/xquery/modules/module.MARCXMLBIB-2-BIBFRAME.xqy#1428) at marcbib2bibframe:generate-work() (file:/usr/share/doc/apache-jena-2.7.4/scripts/marc2bibframe-master/xquery/modules/module.MARCXMLBIB-2-BIBFRAME.xqy#377) at marcbib2bibframe:marcbib2bibframe() Query processing failed: Run-time errors were reported

I will try to isolate more of the offending records and post them to gist.

I am leaving soon for the winter break so I may have to get back to this in the new year, so until then, thanks and happy holidays to you!

Josh

jgreben commented 11 years ago

P.S. I also ran the 2nd and 3rd thirds of the entire set of RDA records and both of those ran without errors, so the problem records are all contained within the first 6850 records. There is probably only one or two more issues to resolve until the whole file will be able to run. - Josh

kefo commented 11 years ago

Hi Josh,

I took a stab at tracking this based on line number, but I can't repeat the problem. When you have a chance, free to send along the problem record.

If easier, you can upload the first 30 to 100 records (since there was a problem around record 28) to a separate location and email me off list (like I said, if that would be easier).

Yours, Kevin

On 12/21/2012 06:09 PM, jgreben wrote:

Thanks Kevin!

I split the 20K records up into thirds and tried processing the first third of the set. I got an error in the first third and I repeated the split into another set of three. I kept doing that until I got down to the first 28 records, which had an error.

However, now with the two fixes you made I have successfully processed over 2200 records, but there are still errors in the first third of the set. This is what I get when I try to process the first 6850 records:

java -cp $CLASSPATH net.sf.saxon.Query saxon.xqy marcxmluri=rdamarc_1_3.xml baseuri=http://linked-data.stanford.edu/ serialization=rdfxml Error on line 1661 of module.MARCXML-2-MADSRDF.xqy: XPTY0004: An empty sequence is not allowed as the result of function marcxml2madsrdf:get-authority-type() at marcxml2madsrdf:get-authority-type() (file:/usr/share/doc/apache-jena-2.7.4/scripts/marc2bibframe-master/xquery/modules/module.MARCXML-2-MADSRDF.xqy#488) at marcxml2madsrdf:marcxml2madsrdf() at marcbib2bibframe:get-subject() (file:/usr/share/doc/apache-jena-2.7.4/scripts/marc2bibframe-master/xquery/modules/module.MARCXMLBIB-2-BIBFRAME.xqy#1428) at marcbib2bibframe:generate-work() (file:/usr/share/doc/apache-jena-2.7.4/scripts/marc2bibframe-master/xquery/modules/module.MARCXMLBIB-2-BIBFRAME.xqy#377) at marcbib2bibframe:marcbib2bibframe() Query processing failed: Run-time errors were reported

I will try to isolate more of the offending records and post them to gist.

I am leaving soon for the winter break so I may have to get back to this in the new year, so until then, thanks and happy holidays to you!

Josh

— Reply to this email directly or view it on GitHub https://github.com/lcnetdev/marc2bibframe/issues/1#issuecomment-11630020.

jgreben commented 11 years ago

Kevin,

I will hopefully be getting back to this project fairly soon. We just returned from winter break and I have a few other new year projects to complete, then I can wrap my head around where I left off with the bibframe record conversions.

Thanks for your help on this!

Josh

On Jan 8, 2013, at 7:51 AM, Kevin Ford wrote:

Hi Josh,

I took a stab at tracking this based on line number, but I can't repeat the problem. When you have a chance, free to send along the problem record.

If easier, you can upload the first 30 to 100 records (since there was a problem around record 28) to a separate location and email me off list (like I said, if that would be easier).

Yours, Kevin

On 12/21/2012 06:09 PM, jgreben wrote:

Thanks Kevin!

I split the 20K records up into thirds and tried processing the first third of the set. I got an error in the first third and I repeated the split into another set of three. I kept doing that until I got down to the first 28 records, which had an error.

However, now with the two fixes you made I have successfully processed over 2200 records, but there are still errors in the first third of the set. This is what I get when I try to process the first 6850 records:

java -cp $CLASSPATH net.sf.saxon.Query saxon.xqy marcxmluri=rdamarc_1_3.xml baseuri=http://linked-data.stanford.edu/ serialization=rdfxml Error on line 1661 of module.MARCXML-2-MADSRDF.xqy: XPTY0004: An empty sequence is not allowed as the result of function marcxml2madsrdf:get-authority-type() at marcxml2madsrdf:get-authority-type() (file:/usr/share/doc/apache-jena-2.7.4/scripts/marc2bibframe-master/xquery/modules/module.MARCXML-2-MADSRDF.xqy#488) at marcxml2madsrdf:marcxml2madsrdf() at marcbib2bibframe:get-subject() (file:/usr/share/doc/apache-jena-2.7.4/scripts/marc2bibframe-master/xquery/modules/module.MARCXMLBIB-2-BIBFRAME.xqy#1428) at marcbib2bibframe:generate-work() (file:/usr/share/doc/apache-jena-2.7.4/scripts/marc2bibframe-master/xquery/modules/module.MARCXMLBIB-2-BIBFRAME.xqy#377) at marcbib2bibframe:marcbib2bibframe() Query processing failed: Run-time errors were reported

I will try to isolate more of the offending records and post them to gist.

I am leaving soon for the winter break so I may have to get back to this in the new year, so until then, thanks and happy holidays to you!

Josh

— Reply to this email directly or view it on GitHub https://github.com/lcnetdev/marc2bibframe/issues/1#issuecomment-11630020.

— Reply to this email directly or view it on GitHub.

jgreben commented 11 years ago

Kevin,

Hers is a gist with 254 records that I could not load. Can you kindly take a look and see what is breaking it?

https://gist.github.com/e1ec0a7c36f096fedfc1

I made this a secret gist, but hopefully you will be able to access it with that link.

Thanks!

Josh

On Jan 8, 2013, at 7:51 AM, Kevin Ford wrote:

Hi Josh,

I took a stab at tracking this based on line number, but I can't repeat the problem. When you have a chance, free to send along the problem record.

If easier, you can upload the first 30 to 100 records (since there was a problem around record 28) to a separate location and email me off list (like I said, if that would be easier).

Yours, Kevin

On 12/21/2012 06:09 PM, jgreben wrote:

Thanks Kevin!

I split the 20K records up into thirds and tried processing the first third of the set. I got an error in the first third and I repeated the split into another set of three. I kept doing that until I got down to the first 28 records, which had an error.

However, now with the two fixes you made I have successfully processed over 2200 records, but there are still errors in the first third of the set. This is what I get when I try to process the first 6850 records:

java -cp $CLASSPATH net.sf.saxon.Query saxon.xqy marcxmluri=rdamarc_1_3.xml baseuri=http://linked-data.stanford.edu/ serialization=rdfxml Error on line 1661 of module.MARCXML-2-MADSRDF.xqy: XPTY0004: An empty sequence is not allowed as the result of function marcxml2madsrdf:get-authority-type() at marcxml2madsrdf:get-authority-type() (file:/usr/share/doc/apache-jena-2.7.4/scripts/marc2bibframe-master/xquery/modules/module.MARCXML-2-MADSRDF.xqy#488) at marcxml2madsrdf:marcxml2madsrdf() at marcbib2bibframe:get-subject() (file:/usr/share/doc/apache-jena-2.7.4/scripts/marc2bibframe-master/xquery/modules/module.MARCXMLBIB-2-BIBFRAME.xqy#1428) at marcbib2bibframe:generate-work() (file:/usr/share/doc/apache-jena-2.7.4/scripts/marc2bibframe-master/xquery/modules/module.MARCXMLBIB-2-BIBFRAME.xqy#377) at marcbib2bibframe:marcbib2bibframe() Query processing failed: Run-time errors were reported

I will try to isolate more of the offending records and post them to gist.

I am leaving soon for the winter break so I may have to get back to this in the new year, so until then, thanks and happy holidays to you!

Josh

— Reply to this email directly or view it on GitHub https://github.com/lcnetdev/marc2bibframe/issues/1#issuecomment-11630020.

— Reply to this email directly or view it on GitHub.

kefo commented 11 years ago

Can you kindly take a look and see what is breaking it? -- A coding boo-boo on our end with the 720s. Took about a nanosecond to fix. All the sample records now run successfully for me.

If you wouldn't mind trying to run your entire batch, I'd be much obliged. I ask because I just pushed some big changes to the overall code, even though we have only made a few tiny changes to the MARC/XML to BIBFRAME transform itself. (The README details the changes: https://github.com/lcnetdev/marc2bibframe/tree/master/xquery ).

If they run, please feel free to close the issue. If not, let's keep it going. :)

Yours, Kevin

On 01/10/2013 02:35 PM, jgreben wrote:

Kevin,

Hers is a gist with 254 records that I could not load. Can you kindly take a look and see what is breaking it?

https://gist.github.com/e1ec0a7c36f096fedfc1

I made this a secret gist, but hopefully you will be able to access it with that link.

Thanks!

Josh

On Jan 8, 2013, at 7:51 AM, Kevin Ford wrote:

Hi Josh,

I took a stab at tracking this based on line number, but I can't repeat the problem. When you have a chance, free to send along the problem record.

If easier, you can upload the first 30 to 100 records (since there was a problem around record 28) to a separate location and email me off list (like I said, if that would be easier).

Yours, Kevin

On 12/21/2012 06:09 PM, jgreben wrote:

Thanks Kevin!

I split the 20K records up into thirds and tried processing the first third of the set. I got an error in the first third and I repeated the split into another set of three. I kept doing that until I got down to the first 28 records, which had an error.

However, now with the two fixes you made I have successfully processed over 2200 records, but there are still errors in the first third of the set. This is what I get when I try to process the first 6850 records:

java -cp $CLASSPATH net.sf.saxon.Query saxon.xqy marcxmluri=rdamarc_1_3.xml baseuri=http://linked-data.stanford.edu/ serialization=rdfxml Error on line 1661 of module.MARCXML-2-MADSRDF.xqy: XPTY0004: An empty sequence is not allowed as the result of function marcxml2madsrdf:get-authority-type() at marcxml2madsrdf:get-authority-type()

(file:/usr/share/doc/apache-jena-2.7.4/scripts/marc2bibframe-master/xquery/modules/module.MARCXML-2-MADSRDF.xqy#488)

at marcxml2madsrdf:marcxml2madsrdf() at marcbib2bibframe:get-subject()

(file:/usr/share/doc/apache-jena-2.7.4/scripts/marc2bibframe-master/xquery/modules/module.MARCXMLBIB-2-BIBFRAME.xqy#1428)

at marcbib2bibframe:generate-work()

(file:/usr/share/doc/apache-jena-2.7.4/scripts/marc2bibframe-master/xquery/modules/module.MARCXMLBIB-2-BIBFRAME.xqy#377)

at marcbib2bibframe:marcbib2bibframe() Query processing failed: Run-time errors were reported

I will try to isolate more of the offending records and post them to gist.

I am leaving soon for the winter break so I may have to get back to this in the new year, so until then, thanks and happy holidays to you!

Josh

— Reply to this email directly or view it on GitHub

https://github.com/lcnetdev/marc2bibframe/issues/1#issuecomment-11630020.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/lcnetdev/marc2bibframe/issues/1#issuecomment-12114561.

jgreben commented 11 years ago

Kevin,

That 254 record batch ran this time, but the next larger batch of 761 records bombed. I went ahead and uploaded all of them, so give it a few moments to download:

https://gist.github.com/86e5a772929c4f16f715

Josh

On Jan 11, 2013, at 3:06 PM, Kevin Ford wrote:

Can you kindly take a look and see what is breaking it? -- A coding boo-boo on our end with the 720s. Took about a nanosecond to fix. All the sample records now run successfully for me.

If you wouldn't mind trying to run your entire batch, I'd be much obliged. I ask because I just pushed some big changes to the overall code, even though we have only made a few tiny changes to the MARC/XML to BIBFRAME transform itself. (The README details the changes: https://github.com/lcnetdev/marc2bibframe/tree/master/xquery ).

If they run, please feel free to close the issue. If not, let's keep it going. :)

Yours, Kevin

On 01/10/2013 02:35 PM, jgreben wrote:

Kevin,

Hers is a gist with 254 records that I could not load. Can you kindly take a look and see what is breaking it?

https://gist.github.com/e1ec0a7c36f096fedfc1

I made this a secret gist, but hopefully you will be able to access it with that link.

Thanks!

Josh

On Jan 8, 2013, at 7:51 AM, Kevin Ford wrote:

Hi Josh,

I took a stab at tracking this based on line number, but I can't repeat the problem. When you have a chance, free to send along the problem record.

If easier, you can upload the first 30 to 100 records (since there was a problem around record 28) to a separate location and email me off list (like I said, if that would be easier).

Yours, Kevin

On 12/21/2012 06:09 PM, jgreben wrote:

Thanks Kevin!

I split the 20K records up into thirds and tried processing the first third of the set. I got an error in the first third and I repeated the split into another set of three. I kept doing that until I got down to the first 28 records, which had an error.

However, now with the two fixes you made I have successfully processed over 2200 records, but there are still errors in the first third of the set. This is what I get when I try to process the first 6850 records:

java -cp $CLASSPATH net.sf.saxon.Query saxon.xqy marcxmluri=rdamarc_1_3.xml baseuri=http://linked-data.stanford.edu/ serialization=rdfxml Error on line 1661 of module.MARCXML-2-MADSRDF.xqy: XPTY0004: An empty sequence is not allowed as the result of function marcxml2madsrdf:get-authority-type() at marcxml2madsrdf:get-authority-type()

(file:/usr/share/doc/apache-jena-2.7.4/scripts/marc2bibframe-master/xquery/modules/module.MARCXML-2-MADSRDF.xqy#488)

at marcxml2madsrdf:marcxml2madsrdf() at marcbib2bibframe:get-subject()

(file:/usr/share/doc/apache-jena-2.7.4/scripts/marc2bibframe-master/xquery/modules/module.MARCXMLBIB-2-BIBFRAME.xqy#1428)

at marcbib2bibframe:generate-work()

(file:/usr/share/doc/apache-jena-2.7.4/scripts/marc2bibframe-master/xquery/modules/module.MARCXMLBIB-2-BIBFRAME.xqy#377)

at marcbib2bibframe:marcbib2bibframe() Query processing failed: Run-time errors were reported

I will try to isolate more of the offending records and post them to gist.

I am leaving soon for the winter break so I may have to get back to this in the new year, so until then, thanks and happy holidays to you!

Josh

— Reply to this email directly or view it on GitHub

https://github.com/lcnetdev/marc2bibframe/issues/1#issuecomment-11630020.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/lcnetdev/marc2bibframe/issues/1#issuecomment-12114561.

— Reply to this email directly or view it on GitHub.

kefo commented 11 years ago

This might be a data error on your end (or at least the error that is first encountered). Take a look at

record: id=catkey_9606393

Specifically, this 630

 <datafield tag="630" ind1="0" ind2="0">
   <subfield code="a">Hippocrates.</subfield>
   <subfield code="t">Peri technēs.</subfield>
 </datafield>

I'm thinking that is extraneous (I'd say it should be a 600, but a 600 with identical information already exists).

Regardless, I'll have to think about the fix. Technically, there is no problem. The fields are legal ($a and $t with the MARC BIB 630 and, more importantly in this case, legal for MARC Authority 130). As such, the fix is easy.

However, in practice, this is the first time I've encountered a uniform title with what appears to be a name in $a and actually uses the $t. And, I recall not coding for $t in MARC Auth 130 (the equivalent form, essentially) because it's a construct that shouldn't occur. To put this in perspective, the script used to deal with subjects in the BIBFRAME code (and the one failing) is used on our authority data (specifically, to transform subjects and names at id.loc.gov), which contains about 500K (Uniform) Title authorities. We've also processed 1 million bib records with that same script and not encountered such a construct. In this case, it's also clearly a name in the $a.

FWIW (and I just looked this up now) there is an Authority for this:

http://id.loc.gov/authorities/names/n98071999

which would be coded as a 600 in the bib. We have two items in our collection with that as a subject. Both are in the 600.

I'm not a cataloger, hence my hesitation to be too bold here, and why I want to check Monday (and, not being a cataloger, no doubt contributes to the rather wordy train of thought you see above).

Yours, Kevin

p.s. OK - after writing the above, I decided to see what happens if I removed the one offending MARC record. Result: runs without error. :)

Here they are, minus catkey_9606393

https://gist.github.com/457a9a6b58d87e70fdb4

java -cp $CLASSPATH net.sf.saxon.Query saxon.xqy marcxmluri=https://gist.github.com/raw/457a9a6b58d87e70fdb4/83468247fd7cf5f288d196a3a279e8678931a239/gistfile1.txt baseuri=http://linked-data.stanford.edu/ serialization=rdfxml

On 01/11/2013 06:33 PM, jgreben wrote:

Kevin,

That 254 record batch ran this time, but the next larger batch of 761 records bombed. I went ahead and uploaded all of them, so give it a few moments to download:

https://gist.github.com/86e5a772929c4f16f715

Josh

On Jan 11, 2013, at 3:06 PM, Kevin Ford wrote:

Can you kindly take a look and see what is breaking it? -- A coding boo-boo on our end with the 720s. Took about a nanosecond to fix. All the sample records now run successfully for me.

If you wouldn't mind trying to run your entire batch, I'd be much obliged. I ask because I just pushed some big changes to the overall code, even though we have only made a few tiny changes to the MARC/XML to BIBFRAME transform itself. (The README details the changes: https://github.com/lcnetdev/marc2bibframe/tree/master/xquery ).

If they run, please feel free to close the issue. If not, let's keep it going. :)

Yours, Kevin

On 01/10/2013 02:35 PM, jgreben wrote:

Kevin,

Hers is a gist with 254 records that I could not load. Can you kindly take a look and see what is breaking it?

https://gist.github.com/e1ec0a7c36f096fedfc1

I made this a secret gist, but hopefully you will be able to access it with that link.

Thanks!

Josh

On Jan 8, 2013, at 7:51 AM, Kevin Ford wrote:

Hi Josh,

I took a stab at tracking this based on line number, but I can't repeat the problem. When you have a chance, free to send along the problem record.

If easier, you can upload the first 30 to 100 records (since there was a problem around record 28) to a separate location and email me off list (like I said, if that would be easier).

Yours, Kevin

On 12/21/2012 06:09 PM, jgreben wrote:

Thanks Kevin!

I split the 20K records up into thirds and tried processing the first third of the set. I got an error in the first third and I repeated the split into another set of three. I kept doing that until I got down to the first 28 records, which had an error.

However, now with the two fixes you made I have successfully processed over 2200 records, but there are still errors in the first third of the set. This is what I get when I try to process the first 6850 records:

java -cp $CLASSPATH net.sf.saxon.Query saxon.xqy marcxmluri=rdamarc_1_3.xml baseuri=http://linked-data.stanford.edu/ serialization=rdfxml Error on line 1661 of module.MARCXML-2-MADSRDF.xqy: XPTY0004: An empty sequence is not allowed as the result of function marcxml2madsrdf:get-authority-type() at marcxml2madsrdf:get-authority-type()

(file:/usr/share/doc/apache-jena-2.7.4/scripts/marc2bibframe-master/xquery/modules/module.MARCXML-2-MADSRDF.xqy#488)

at marcxml2madsrdf:marcxml2madsrdf() at marcbib2bibframe:get-subject()

(file:/usr/share/doc/apache-jena-2.7.4/scripts/marc2bibframe-master/xquery/modules/module.MARCXMLBIB-2-BIBFRAME.xqy#1428)

at marcbib2bibframe:generate-work()

(file:/usr/share/doc/apache-jena-2.7.4/scripts/marc2bibframe-master/xquery/modules/module.MARCXMLBIB-2-BIBFRAME.xqy#377)

at marcbib2bibframe:marcbib2bibframe() Query processing failed: Run-time errors were reported

I will try to isolate more of the offending records and post them to gist.

I am leaving soon for the winter break so I may have to get back to this in the new year, so until then, thanks and happy holidays to you!

Josh

— Reply to this email directly or view it on GitHub

https://github.com/lcnetdev/marc2bibframe/issues/1#issuecomment-11630020.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub

https://github.com/lcnetdev/marc2bibframe/issues/1#issuecomment-12114561.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/lcnetdev/marc2bibframe/issues/1#issuecomment-12168836.

jgreben commented 11 years ago

Kevin, Thanks for looking into that. I am also Cc-ing our metadata analyst so she can let me know what she thinks about this record and whether it is an anomaly or standard practice here to catalog this way.

For now I will remove that record key from the base list of keys I am using, and try to run the entire set. If any more records fail, I will look at them for the same problem. Hopefully the rest will run, but I will send along more batches if they do not.

Thanks again!

Josh

On Jan 11, 2013, at 4:16 PM, Kevin Ford wrote:

This might be a data error on your end (or at least the error that is first encountered). Take a look at

record: id=catkey_9606393

Specifically, this 630

Hippocrates. Peri technēs.

I'm thinking that is extraneous (I'd say it should be a 600, but a 600 with identical information already exists).

Regardless, I'll have to think about the fix. Technically, there is no problem. The fields are legal ($a and $t with the MARC BIB 630 and, more importantly in this case, legal for MARC Authority 130). As such, the fix is easy.

However, in practice, this is the first time I've encountered a uniform title with what appears to be a name in $a and actually uses the $t. And, I recall not coding for $t in MARC Auth 130 (the equivalent form, essentially) because it's a construct that shouldn't occur. To put this in perspective, the script used to deal with subjects in the BIBFRAME code (and the one failing) is used on our authority data (specifically, to transform subjects and names at id.loc.gov), which contains about 500K (Uniform) Title authorities. We've also processed 1 million bib records with that same script and not encountered such a construct. In this case, it's also clearly a name in the $a.

FWIW (and I just looked this up now) there is an Authority for this:

http://id.loc.gov/authorities/names/n98071999

which would be coded as a 600 in the bib. We have two items in our collection with that as a subject. Both are in the 600.

I'm not a cataloger, hence my hesitation to be too bold here, and why I want to check Monday (and, not being a cataloger, no doubt contributes to the rather wordy train of thought you see above).

Yours, Kevin

p.s. OK - after writing the above, I decided to see what happens if I removed the one offending MARC record. Result: runs without error. :)

Here they are, minus catkey_9606393

https://gist.github.com/457a9a6b58d87e70fdb4

java -cp $CLASSPATH net.sf.saxon.Query saxon.xqy marcxmluri=https://gist.github.com/raw/457a9a6b58d87e70fdb4/83468247fd7cf5f288d196a3a279e8678931a239/gistfile1.txt baseuri=http://linked-data.stanford.edu/ serialization=rdfxml

On 01/11/2013 06:33 PM, jgreben wrote:

Kevin,

That 254 record batch ran this time, but the next larger batch of 761 records bombed. I went ahead and uploaded all of them, so give it a few moments to download:

https://gist.github.com/86e5a772929c4f16f715

Josh

On Jan 11, 2013, at 3:06 PM, Kevin Ford wrote:

Can you kindly take a look and see what is breaking it? -- A coding boo-boo on our end with the 720s. Took about a nanosecond to fix. All the sample records now run successfully for me.

If you wouldn't mind trying to run your entire batch, I'd be much obliged. I ask because I just pushed some big changes to the overall code, even though we have only made a few tiny changes to the MARC/XML to BIBFRAME transform itself. (The README details the changes: https://github.com/lcnetdev/marc2bibframe/tree/master/xquery ).

If they run, please feel free to close the issue. If not, let's keep it going. :)

Yours, Kevin

On 01/10/2013 02:35 PM, jgreben wrote:

Kevin,

Hers is a gist with 254 records that I could not load. Can you kindly take a look and see what is breaking it?

https://gist.github.com/e1ec0a7c36f096fedfc1

I made this a secret gist, but hopefully you will be able to access it with that link.

Thanks!

Josh

On Jan 8, 2013, at 7:51 AM, Kevin Ford wrote:

Hi Josh,

I took a stab at tracking this based on line number, but I can't repeat the problem. When you have a chance, free to send along the problem record.

If easier, you can upload the first 30 to 100 records (since there was a problem around record 28) to a separate location and email me off list (like I said, if that would be easier).

Yours, Kevin

On 12/21/2012 06:09 PM, jgreben wrote:

Thanks Kevin!

I split the 20K records up into thirds and tried processing the first third of the set. I got an error in the first third and I repeated the split into another set of three. I kept doing that until I got down to the first 28 records, which had an error.

However, now with the two fixes you made I have successfully processed over 2200 records, but there are still errors in the first third of the set. This is what I get when I try to process the first 6850 records:

java -cp $CLASSPATH net.sf.saxon.Query saxon.xqy marcxmluri=rdamarc_1_3.xml baseuri=http://linked-data.stanford.edu/ serialization=rdfxml Error on line 1661 of module.MARCXML-2-MADSRDF.xqy: XPTY0004: An empty sequence is not allowed as the result of function marcxml2madsrdf:get-authority-type() at marcxml2madsrdf:get-authority-type()

(file:/usr/share/doc/apache-jena-2.7.4/scripts/marc2bibframe-master/xquery/modules/module.MARCXML-2-MADSRDF.xqy#488)

at marcxml2madsrdf:marcxml2madsrdf() at marcbib2bibframe:get-subject()

(file:/usr/share/doc/apache-jena-2.7.4/scripts/marc2bibframe-master/xquery/modules/module.MARCXMLBIB-2-BIBFRAME.xqy#1428)

at marcbib2bibframe:generate-work()

(file:/usr/share/doc/apache-jena-2.7.4/scripts/marc2bibframe-master/xquery/modules/module.MARCXMLBIB-2-BIBFRAME.xqy#377)

at marcbib2bibframe:marcbib2bibframe() Query processing failed: Run-time errors were reported

I will try to isolate more of the offending records and post them to gist.

I am leaving soon for the winter break so I may have to get back to this in the new year, so until then, thanks and happy holidays to you!

Josh

— Reply to this email directly or view it on GitHub

https://github.com/lcnetdev/marc2bibframe/issues/1#issuecomment-11630020.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub

https://github.com/lcnetdev/marc2bibframe/issues/1#issuecomment-12114561.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/lcnetdev/marc2bibframe/issues/1#issuecomment-12168836.

— Reply to this email directly or view it on GitHub.

jgreben commented 11 years ago

Kevin,

FYI, about that bad record. Also you will be glad to know that all of the 20K+ RDA records ran after the final fixes that you made and after removing that bad record. Thanks for all your help, and please feel free to close this ticket!

Josh

Begin forwarded message:

From: Rita Lunnon rlunnon@stanford.edu Date: January 14, 2013 10:16:18 AM PST To: Joshua Greben jgreben@stanford.edu Subject: Re: [marc2bibframe] Errors converting records (#1)

Hi Josh,

For ckey 9606393, the tag in question is in error; I changed the 630 to 600 and deleted the other 600 which had an incorrect form of the title (on Jenson).

While theoretically possible, I have never seen a x30 field with a subfield t either, since by definition the subfield a is the title.

Rita

On 1/11/2013 4:31 PM, Joshua Greben wrote:

Kevin, Thanks for looking into that. I am also Cc-ing our metadata analyst so she can let me know what she thinks about this record and whether it is an anomaly or standard practice here to catalog this way.

For now I will remove that record key from the base list of keys I am using, and try to run the entire set. If any more records fail, I will look at them for the same problem. Hopefully the rest will run, but I will send along more batches if they do not.

Thanks again!

Josh

On Jan 11, 2013, at 4:16 PM, Kevin Ford wrote:

This might be a data error on your end (or at least the error that is first encountered). Take a look at

record: id=catkey_9606393

Specifically, this 630

Hippocrates. Peri technēs.

I'm thinking that is extraneous (I'd say it should be a 600, but a 600 with identical information already exists).

Regardless, I'll have to think about the fix. Technically, there is no problem. The fields are legal ($a and $t with the MARC BIB 630 and, more importantly in this case, legal for MARC Authority 130). As such, the fix is easy.

However, in practice, this is the first time I've encountered a uniform title with what appears to be a name in $a and actually uses the $t. And, I recall not coding for $t in MARC Auth 130 (the equivalent form, essentially) because it's a construct that shouldn't occur. To put this in perspective, the script used to deal with subjects in the BIBFRAME code (and the one failing) is used on our authority data (specifically, to transform subjects and names at id.loc.gov), which contains about 500K (Uniform) Title authorities. We've also processed 1 million bib records with that same script and not encountered such a construct. In this case, it's also clearly a name in the $a.

FWIW (and I just looked this up now) there is an Authority for this:

http://id.loc.gov/authorities/names/n98071999

which would be coded as a 600 in the bib. We have two items in our collection with that as a subject. Both are in the 600.

I'm not a cataloger, hence my hesitation to be too bold here, and why I want to check Monday (and, not being a cataloger, no doubt contributes to the rather wordy train of thought you see above).

Yours, Kevin

p.s. OK - after writing the above, I decided to see what happens if I removed the one offending MARC record. Result: runs without error. :)

Here they are, minus catkey_9606393

https://gist.github.com/457a9a6b58d87e70fdb4

java -cp $CLASSPATH net.sf.saxon.Query saxon.xqy marcxmluri=https://gist.github.com/raw/457a9a6b58d87e70fdb4/83468247fd7cf5f288d196a3a279e8678931a239/gistfile1.txt baseuri=http://linked-data.stanford.edu/ serialization=rdfxml

On 01/11/2013 06:33 PM, jgreben wrote:

Kevin,

That 254 record batch ran this time, but the next larger batch of 761 records bombed. I went ahead and uploaded all of them, so give it a few moments to download:

https://gist.github.com/86e5a772929c4f16f715

Josh

On Jan 11, 2013, at 3:06 PM, Kevin Ford wrote:

Can you kindly take a look and see what is breaking it? -- A coding boo-boo on our end with the 720s. Took about a nanosecond to fix. All the sample records now run successfully for me.

If you wouldn't mind trying to run your entire batch, I'd be much obliged. I ask because I just pushed some big changes to the overall code, even though we have only made a few tiny changes to the MARC/XML to BIBFRAME transform itself. (The README details the changes: https://github.com/lcnetdev/marc2bibframe/tree/master/xquery ).

If they run, please feel free to close the issue. If not, let's keep it going. :)

Yours, Kevin

On 01/10/2013 02:35 PM, jgreben wrote:

Kevin,

Hers is a gist with 254 records that I could not load. Can you kindly take a look and see what is breaking it?

https://gist.github.com/e1ec0a7c36f096fedfc1

I made this a secret gist, but hopefully you will be able to access it with that link.

Thanks!

Josh

On Jan 8, 2013, at 7:51 AM, Kevin Ford wrote:

Hi Josh,

I took a stab at tracking this based on line number, but I can't repeat the problem. When you have a chance, free to send along the problem record. If easier, you can upload the first 30 to 100 records (since there was a problem around record 28) to a separate location and email me off list (like I said, if that would be easier).

Yours, Kevin

On 12/21/2012 06:09 PM, jgreben wrote:

Thanks Kevin!

I split the 20K records up into thirds and tried processing the first third of the set. I got an error in the first third and I repeated the split into another set of three. I kept doing that until I got down to the first 28 records, which had an error.

However, now with the two fixes you made I have successfully processed over 2200 records, but there are still errors in the first third of the set. This is what I get when I try to process the first 6850 records: java -cp $CLASSPATH net.sf.saxon.Query saxon.xqy marcxmluri=rdamarc_1_3.xml baseuri=http://linked-data.stanford.edu/ serialization=rdfxml Error on line 1661 of module.MARCXML-2-MADSRDF.xqy: XPTY0004: An empty sequence is not allowed as the result of function marcxml2madsrdf:get-authority-type() at marcxml2madsrdf:get-authority-type()

(file:/usr/share/doc/apache-jena-2.7.4/scripts/marc2bibframe-master/xquery/modules/module.MARCXML-2-MADSRDF.xqy#488)

at marcxml2madsrdf:marcxml2madsrdf() at marcbib2bibframe:get-subject()

(file:/usr/share/doc/apache-jena-2.7.4/scripts/marc2bibframe-master/xquery/modules/module.MARCXMLBIB-2-BIBFRAME.xqy#1428)

at marcbib2bibframe:generate-work()

(file:/usr/share/doc/apache-jena-2.7.4/scripts/marc2bibframe-master/xquery/modules/module.MARCXMLBIB-2-BIBFRAME.xqy#377)

at marcbib2bibframe:marcbib2bibframe() Query processing failed: Run-time errors were reported

I will try to isolate more of the offending records and post them to gist. I am leaving soon for the winter break so I may have to get back to this in the new year, so until then, thanks and happy holidays to you!

Josh

— Reply to this email directly or view it on GitHub

https://github.com/lcnetdev/marc2bibframe/issues/1#issuecomment-11630020. — Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub

https://github.com/lcnetdev/marc2bibframe/issues/1#issuecomment-12114561. — Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/lcnetdev/marc2bibframe/issues/1#issuecomment-12168836.

— Reply to this email directly or view it on GitHub.