Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nm:ManufacturerOrSourceName attribute missing from Filler and Surface Treatment components #32

Open
mdeagen opened this issue Oct 1, 2020 · 4 comments

Comments

@mdeagen
Copy link

mdeagen commented Oct 1, 2020

This attribute appears for component parts with role of Matrix, however does not appear for component parts of Filler or Surface Treatment. This information is included in the XML files, with the xpath nested within the respective component(s).

@mdeagen
Copy link
Author

mdeagen commented Oct 7, 2020

@rashidsabbir Filler materials' manufacturer data are not importing.

# Show distinct ManufacturerOrSourceName for Filler materials
PREFIX nm: <http://nanomine.org/ns/>
PREFIX sio: <http://semanticscience.org/resource/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?mfgr WHERE {
  ?sample a nm:PolymerNanocomposite ;
          sio:hasComponentPart [ sio:hasRole [ a nm:Filler ] ;
                                 sio:hasAttribute [ a nm:ManufacturerOrSourceName ;
                                                    sio:hasValue ?mfgr ] 
                               ]
}

0 results

However, Surface Treatment materials' manufacturer data are importing now.

# Show distinct ManufacturerOrSourceName for Surface Treatment materials
PREFIX nm: <http://nanomine.org/ns/>
PREFIX sio: <http://semanticscience.org/resource/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?mfgr WHERE {
  ?sample a nm:PolymerNanocomposite ;
          sio:hasComponentPart/sio:isSurroundedBy/sio:hasAttribute ?x .
  ?x a nm:ManufacturerOrSourceName ;
     sio:hasValue ?mfgr .
} 

28 results

The Filler ManufacturerOrSourceName is nested within the FillerComponent element in the XML's, so SETLr should check here before moving on to the ParticleSurfaceTreatment element.

Below is an example XML that has ManufacturerOrSourceName info for Matrix, Filler, and ParticleSurfaceTreatment:

image

@mdeagen
Copy link
Author

mdeagen commented Apr 28, 2021

Cause of issue appears to be in https://github.com/tetherless-world/nanomine-graph/blob/master/setl/xml_ingest.setl.ttl. The attribute for ManufacturerOrSourceName is only included in SETL for Surface Treatment and Matrix components (see example below)
image
This attribute should also exist under FillerComponent, e.g. around line 247-248

@rashidsabbir
Copy link
Member

I've added some content in lines 192-201 which should address the missing manufacturer for FillerComponent

@mdeagen
Copy link
Author

mdeagen commented Jul 23, 2021

Update: Here is the SPARQL query for testing (After ingestion, should return 3 results: mm:Filler, mm:Matrix, and mm:SurfaceTreatment for an XML file such as L142_S3_Gao_2014.xml)

PREFIX sio: <http://semanticscience.org/resource/>
PREFIX mm: <http://materialsmine.org/ns/>
SELECT DISTINCT ?role WHERE {
  ?compound sio:hasAttribute [ a mm:ManufacturerOrSourceName ] ;
            sio:hasRole [ a ?role ]
} 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants