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

Identify specific issues for producing SPARQL according to PKG data model (utils.py) #64

Closed
kbalog opened this issue Dec 15, 2023 · 1 comment · Fixed by #93
Closed
Assignees
Labels
P0 Top priority

Comments

@kbalog
Copy link
Contributor

kbalog commented Dec 15, 2023

No description provided.

@kbalog kbalog added the P0 Top priority label Dec 15, 2023
@kbalog kbalog self-assigned this Dec 15, 2023
@mgskjaeveland
Copy link
Collaborator

Suggested pseudo algorithm for producing statements from incoming text.

  1. Create a fresh rdf:Statement S
  2. Add the incoming text as dc:description to S
  3. Identify the subject, predicate and object of the statement.
  4. For each X in (subject, predicate, object):
    • if X can be identified by a single IRI, then add 'S rdf:subject|rdf:predicate|rdf:object X'
    • else
      • create a skos:Concept C, and add X as a description to C
      • if related entities can be extracted from X and be identified by an IRI, then add these as 'skos:related|skos:broader|skos:narrower' to C
  5. Add provenance data to to S (created by, ...)

An example for "I dislike all Tom Cruise movies" is found here: https://github.com/iai-group/pkg-vocabulary/blob/main/example/ex1.ttl

@NoB0 NoB0 self-assigned this Jan 24, 2024
@NoB0 NoB0 linked a pull request Feb 8, 2024 that will close this issue
@NoB0 NoB0 closed this as completed in #93 Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P0 Top priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants