Questions tagged [entityresolver]

18 questions
9
votes
3 answers

Java XML processing entity problem?

I get the following error when I try to run my java program(it's supposed to read an xml file and print out some of the content). From what I understand there is an unreferenced entity which is not part of the xml standard so my question is; how can…
anonymous
  • 2,294
  • 5
  • 23
  • 27
8
votes
2 answers

Java: How to prevent 'systemId' in EntityResolver#resolveEntity(String publicId, String systemId) from being absolutized to current working directory

I want to parse the following XML document to resolve all entities in it: &title; My EntityResolver is supposed to fetch the external entity with the given system ID from the database and then do the…
His
  • 5,891
  • 15
  • 61
  • 82
6
votes
2 answers

fastest way to do fuzzy matching two strings in pandas data frame

I have two data frames with name list df1[name] -> number of rows 3000 df2[name] -> number of rows 64000 I am using fuzzy wuzzy to get the best match for df1 entries from df2 using the following code: from fuzzywuzzy import fuzz from…
2
votes
1 answer

TypeORM 0.3.12: FieldResolver() not returning expected results with where statement

I recently upgraded TypeORM from version 0.2.37 to 0.3.12. However, after the upgrade, the where statement is not returning any answers' entity even though there are records in the database that should match the criteria (question is not finding any…
Said Torres
  • 581
  • 3
  • 14
2
votes
0 answers

Scaling Dedupe package functionality to large data using mysql DB

I have been now trying for a while to make a working example of the gazetteer/dedupe that scales to semi-large datasets connecting to SQL (using examples provided by the package) and have been unsuccessful. Would really appreciate if anyone could…
2
votes
1 answer

Setting a custom XOM EntityResolver

I need to not validate against a doctype, so I'd like to set a custom EntityResolver that accepts everything. I'm getting data back from tagsoup, so I know my data is well-formed and correct. Furthermore, I need to rapidly hit a number of documents,…
Stefan Kendall
  • 66,414
  • 68
  • 253
  • 406
1
vote
1 answer

Python SAX Parser: resolveEntity

I am having a hard time figuring out how to bind a ResolveEntityHandler of my own to a SAX parser. On SO there this answer. But unfortunately I cannot reproduce the result there. When I run the following code, which is actually copied from the…
gefei
  • 18,922
  • 9
  • 50
  • 67
1
vote
1 answer

NestJS + TypORM design patterns: resolver vs service

I've found numerous examples of nest 'example' apps, but each one seems to have slightly different opinions on design patterns. I'm currently interested in where the object preparation work should go between a resolver and service when coupled with…
baku
  • 765
  • 8
  • 22
1
vote
2 answers

Entity resolution for venues and other geo locations

Say I want to build a check-in aggregator that counts visits across platforms, so that I can know for a given place how many people have checked in there on Foursquare, Gowalla, BrightKite, etc. Is there a good library or set of tools I can use out…
Trevor
  • 101
  • 1
  • 1
  • 2
1
vote
2 answers

JAXB and EntityResolver

Ok so here is the deal. I have an xml file starting like this:
dsthetics
  • 287
  • 1
  • 7
  • 19
0
votes
1 answer

How to set StreamSource.setReader() with custom EntityResolver in XMLReader

I need to get a StreamSource from my xml file, however I also need to use a custom EntityResolver. The problem I am having is that I cannot figurout how to get an XMLReader into my stream source. I am doing the following: (doc is an…
Casey Jordan
  • 1,204
  • 1
  • 20
  • 39
0
votes
1 answer

Unique ID (UID) generation using pyspark across different data sources

We are working on a use case to generate a unique ID (UID) for the Customers spanning across different systems/data sources. The unique ID will be generated using PII information such as email & phone no. Problem Statement: For example a Customer…
nilesh1212
  • 1,561
  • 2
  • 26
  • 60
0
votes
2 answers

When merging multiple xml files, how can I set EntityResolver for child xml files as well besides the parent xml?

I have a book xml file which references other multiple xml files. When I try to run an xslt on the book.xml file, the EntityResolver in my code resolves the dtd path. However, for the children xml files which are being merged, the dtd paths are not…
Antony
  • 115
  • 1
  • 11
0
votes
1 answer

How can I set the entity resolver?

I am trying to set the dtd path dynamically. When I use the EntityResolver class, it works for org.xml.sax.XMLReader. But I don't know how to set the EntityResolver for a SAXSource. How can I correct the following code? import…
Antony
  • 115
  • 1
  • 11
0
votes
1 answer

Azure TableEntity EntityResolver to Call and re-use base resolving functionality

I'm creating a custom EntityResolve, so that when I retrieve my azure table records, I will set a bunch of properties on the Business Object (TableEntity object) that are designed only to be used in my app and not persisted back to the Azure table. …
user1060500
  • 1,505
  • 1
  • 21
  • 40
1
2