Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8499599
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T00:42:41+00:00 2026-06-11T00:42:41+00:00

Here is how I know to create a class in N3: :Person a rdfs:Class.

  • 0

Here is how I know to create a class in N3:

:Person a rdfs:Class.

And here is how to specify that a specific ressource is an instance of that class:

:Pat a :Person.

Problem: I want to create a class with more than 20000 instances (programmatically generated). Writing the whole :Pat a :Person. for my 20000 instances makes the ontology file verbose.

Question: is there a work around to make the file smaller?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T00:42:42+00:00Added an answer on June 11, 2026 at 12:42 am

    You can define a custom prefix for the full class URI, and then just use the prefix to refer to the class:

    @prefix : <http://example.com/myOntology#>.
    @prefix x: <http://example.com/myOntology#MyClass>.
    
    :Alice a x: .
    :Bob a x: .
    :Charlie a x: .
    

    That’s not exactly readable, but as short as it’s going to get.

    I agree with Antoine that there’s little point in this kind of trickery. Disk space is cheap, and this stuff compresses well for network transfer, and for processing in an application it will be expanded anyways.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I don't know what this is called but here goes. public class Person {
So here's my problem... Let's say I have a simple Person class just with
I know that many threads has been created here & on the internet about
i hope that everyone here know the php 'variable variable' syntax: $color = 'red';
The thing I want to know here should be really 'basic', but it is
this is my first question here :) I know that I should not check
Well the problem here is that if you have one DataTemplate for a type
UPDATE:: OK i am putting the original problem statement here Given the Main class
I am writing a program for class that is asking us to create a
I have created a class Person that looks like this: public class Person {

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.