Virtual Learning Factory Toolkit
  • Virtual Learning Factory Toolkit
  • VLF Knowledge Base
    • Factory Data Model
      • OWL Classes
      • SPARQL Queries
      • SPARQL Updates
    • Instantiation of Factory Models
      • Assets
        • Assets in Spreadsheet
        • Assets in JSON
        • Assets in Ontology
      • 3D Models of Assets
        • 3D Models for Virtual Reality
      • Statechart
      • Animations
      • Data Repositories
        • Local Repository
        • Remote Repository
  • VLF Tools and Libraries
    • OntoGui
      • Modules
        • Control Panel
        • Individual Manager
        • System Design
        • Utilities
      • Personalization
    • OntoGuiWeb
      • Modules
        • Control Panel
        • SPARQL
        • Graphs OWL
        • Utilities
        • Asset Design
        • System Design
        • System Control
        • Performance Evaluation
        • MQTT Sync
        • Virtual Environment
        • Graphs Eng
        • StateChart
      • Personalization
    • jsimIO
      • How to start
      • JMT Overview
        • JSim
          • Model generation
          • Launch of the simulation
          • Reporting
        • Bibliography
    • VEB.js
      • Functionalities
      • Input/Output files
      • Integration with other software tools
      • Advanced Users
    • ApertusVR
    • MTM
      • How to start
      • Formalise the process
      • Prepare input data
      • Execution and results
    • MOST
      • How to start
      • Formalise the process
      • Prepare input data
      • Execution and results
    • RULA
      • How to start
      • Formalise the process
      • Prepare input data
      • Execution and results
    • OCRA
      • How to start
      • Prepare input data
      • Execution and results
  • Use Cases
    • Automated Assembly Line
    • Assets and Animations
    • Modelling of Factory Assets
      • Modelling of an Assembled Product
      • Modelling of a Workstation
      • 3D Modelling of a Workstation for Virtual Reality
    • Process Modelling
      • Modelling an Assembly Process
    • Modelling of a manufacturing system
      • Modelling in OntoGui
      • Modelling a Job Shop using OntoGui
      • Modelling of a Flow Shop using OntoGui
      • Modelling a Hybrid Flow Shop using OntoGui
      • Modelling an assembly system using OntoGui
    • Performance evaluation using jsimIO
      • Performance evaluation of a manufacturing system
        • Performance evaluation in Jsim
        • Performance evaluation of a Flow Shop using Jsim
        • Performance Evaluation of a Job Shop using JSim
        • Performance evaluation of a Hybrid Flow Shop using Jsim
        • Performance evaluation of an assembly system using Jsim
      • jsimIO Assembly
      • jsimIO Automatic
      • jsimIO Production
  • Classworks
  • Advanced Features
    • JMT model
      • Automatic generation of a JMT model
      • Automatic generation of animations
    • Enabling technologies
      • Node-RED
        • Node-RED tutorial
      • RDF libraries
Powered by GitBook
On this page
  • Get Parts and Part Types
  • Get Process Plans of Parts/Part types

Was this helpful?

  1. VLF Knowledge Base
  2. Factory Data Model

SPARQL Queries

PreviousOWL ClassesNextSPARQL Updates

Last updated 1 year ago

Was this helpful?

is a query language standard to retrieve and manipulate data stored in Resource Description Framework (RDF) format, thus including OWL ontologies.

The use of SPARQL queries asks for a SPARQL Endpoint, i.e. a server that can handle HTTP requests. SPARQL Endpoints are typically provided by .

This section presents examples of SPARQL Queries tailored for the . These examples must be intended as templates that can be customized by .

The full set of SPARQL queries is available in .

Get Parts and Part Types

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> 
PREFIX fa: <https://w3id.org/ontoeng/factory#> 
SELECT DISTINCT ?parttype ?part ?itsClass
WHERE { 
	{
		?itsClass rdfs:subClassOf* fa:ArtifactType . 
		?parttype rdf:type ?itsClass .
	}
	UNION{
		?itsClass rdfs:subClassOf* fa:Artifact . 
		?part rdf:type ?itsClass .
	}
}

Get Process Plans of Parts/Part types

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> 
PREFIX ifc: <https://standards.buildingsmart.org/IFC/DEV/IFC4/ADD1/OWL#> 
PREFIX ifcext: <https://w3id.org/ontoeng/IFC4_ADD1_extension#> 
PREFIX factory: <https://w3id.org/ontoeng/factory#> 
select distinct ?parttype ?pplan 
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> 
PREFIX ifcext: <https://w3id.org/ontoeng/IFC4_ADD1_extension#> 
PREFIX fa: <https://w3id.org/ontoeng/factory#> 
select distinct ?parttype ?part ?pplan 
WHERE { 

	?pplan rdf:type/rdfs:subClassOf* fa:TaskSelect .
	
	{
		?parttype ifcext:hasAssignedObject|^ifcext:hasAssignmentTo ?pplan .
		?parttype rdf:type/rdfs:subClassOf* fa:ArtifactType .
	}
	UNION{
		{
			?part ifcext:isDefinedByType ?parttype .
			?parttype ifcext:hasAssignedObject|^ifcext:hasAssignmentTo ?pplan .
		}
		UNION{
			?part ifcext:hasAssignedObject|^ifcext:hasAssignmentTo ?pplan .
		}
		?part rdf:type/rdfs:subClassOf* fa:Artifact . 
	}
}

SPARQL
W3C
Factory Data Model
specifying RDF Datasets
this folder
Get part types
Get process plans
RDF stores